google-code-export / mgwt

Automatically exported from code.google.com/p/mgwt
Other
1 stars 0 forks source link

SwipeHandler on iOS #237

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a TouchPanel
2. Register a SwipeStartHandler that displays swipes somehow
3. Try it on iOS

What is the expected output? What do you see instead?
Expected Swipes to be recognized.

What version of the product are you using? On what operating system?
Tested on an iPad running iOS 5.1.1.
Testing on an Android 4.1 device worked as expected.

Please provide any additional information below.

Original issue reported on code.google.com by tlan...@gmail.com on 24 Aug 2012 at 7:54

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision ca27b1c8e9a4.

Original comment by kurka.da...@gmail.com on 22 Sep 2012 at 4:57

GoogleCodeExporter commented 9 years ago
it turns out that ios devices do not copy the touch properties (they are by 
reference).

The swipe recognizer actually stored the touch start event and compared it 
later to the actual touch move event for the threshold. iOS devices changed the 
stored touch start event and set its properties to touchmove thus resulting in 
the starting distance was never actually made...

Original comment by kurka.da...@gmail.com on 22 Sep 2012 at 5:00

GoogleCodeExporter commented 9 years ago
Attached is a small Maven project to reproduce the bug.

It is based on the Swipe recognizer official example :
http://code.google.com/p/mgwt/source/browse/examples/src/main/java/com/googlecod
e/mgwt/examples/client/SwipeRecognizerExample.java?repo=examples

Just run the command : mvn clean compile tomcat:run-war

Original comment by stbl...@gmail.com on 17 Oct 2012 at 5:00

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by kurka.da...@gmail.com on 20 Oct 2012 at 4:01

GoogleCodeExporter commented 9 years ago

Original comment by kurka.da...@gmail.com on 20 Oct 2012 at 4:11