|
|
@ -618,11 +618,7 @@ function GestureDetector:adjustGesCoordinate(ges)
|
|
|
|
ges.direction = "south"
|
|
|
|
ges.direction = "south"
|
|
|
|
elseif ges.direction == "west" then
|
|
|
|
elseif ges.direction == "west" then
|
|
|
|
ges.direction = "north"
|
|
|
|
ges.direction = "north"
|
|
|
|
end
|
|
|
|
elseif ges.direction == "northeast" then
|
|
|
|
elseif ges.ges == "pinch" or ges.ges == "spread"
|
|
|
|
|
|
|
|
or ges.ges == "inward_pan"
|
|
|
|
|
|
|
|
or ges.ges == "outward_pan" then
|
|
|
|
|
|
|
|
if ges.direction == "northeast" then
|
|
|
|
|
|
|
|
ges.direction = "southeast"
|
|
|
|
ges.direction = "southeast"
|
|
|
|
elseif ges.direction == "northwest" then
|
|
|
|
elseif ges.direction == "northwest" then
|
|
|
|
ges.direction = "northeast"
|
|
|
|
ges.direction = "northeast"
|
|
|
@ -631,6 +627,14 @@ function GestureDetector:adjustGesCoordinate(ges)
|
|
|
|
elseif ges.direction == "southwest" then
|
|
|
|
elseif ges.direction == "southwest" then
|
|
|
|
ges.direction = "northwest"
|
|
|
|
ges.direction = "northwest"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
elseif ges.ges == "pinch" or ges.ges == "spread"
|
|
|
|
|
|
|
|
or ges.ges == "inward_pan"
|
|
|
|
|
|
|
|
or ges.ges == "outward_pan" then
|
|
|
|
|
|
|
|
if ges.direction == "horizontal" then
|
|
|
|
|
|
|
|
ges.direction = "vertical"
|
|
|
|
|
|
|
|
elseif ges.direction == "vertical" then
|
|
|
|
|
|
|
|
ges.direction = "horizontal"
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
return ges
|
|
|
|
return ges
|
|
|
|