bugfix: adjust coordinates of pan gesture

This commit is contained in:
chrox
2013-03-12 11:27:41 +08:00
parent da2a3ff753
commit 617613e763

View File

@@ -455,7 +455,7 @@ function GestureDetector:adjustGesCoordinate(ges)
if ges.pos then
ges.pos.x, ges.pos.y = (Screen.width - ges.pos.y), (ges.pos.x)
end
if ges.ges == "swipe" then
if ges.ges == "swipe" or ges.ges == "pan" then
if ges.direction == "down" then
ges.direction = "left"
elseif ges.direction == "up" then