MrSnowdenJr / mobileterminal

Automatically exported from code.google.com/p/mobileterminal
0 stars 0 forks source link

Swipe left/right #217

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Using swipe left/right gestures in the applesdk version

What is the expected output? What do you see instead?
unless you draw a really straight swipe swipe left-up/down is recognized 
instead of swipe left

What version of the product are you using? On what operating system?
iOS 4.1 

Please provide any additional information below.

It's related to the way UISwipeGestureRecognizer works...
I implemented a way of recognizing the swipes manually...
I'm attaching the source files...

Original issue reported on code.google.com by dapetc...@gmail.com on 16 Oct 2010 at 12:31

Attachments:

GoogleCodeExporter commented 9 years ago
How about we file a bug against apple to fix UISwipeGestureRecognizer so that 
everyone can benefit -- or is there something different about mobileterminal?

Original comment by allen.po...@gmail.com on 18 Oct 2010 at 3:52

GoogleCodeExporter commented 9 years ago
Yeah... That would be a good idea... We could use this in the meantime...

Original comment by dapetc...@gmail.com on 18 Oct 2010 at 5:56

GoogleCodeExporter commented 9 years ago
Seems bugreport.apple.com is down... Or at least I can't access it

Original comment by dapetc...@gmail.com on 18 Oct 2010 at 6:01

GoogleCodeExporter commented 9 years ago
Fair points about doing something in the meantime.  A couple of other comments:
- Maybe the order that the recognizers are added to the view matters (ie, the 
one added last gets priority)
- Maybe the behaviors can be tweaked slightly using the 
UIGestureRecognizerDelegate protocol -- ie changing the behavior of 
gestureRecognizerShouldBegin.
- Was there a particular reason you implemented this as a UIView subclass 
instead of as a UIGestureRecognizer subclass? Unless there is a particular 
limitation using the gesture recognizer framework may be a better long term 
solution.

Original comment by allen.po...@gmail.com on 2 Jan 2011 at 6:52

GoogleCodeExporter commented 9 years ago
Fair points about doing something in the meantime.  A couple of other comments:
- Maybe the order that the recognizers are added to the view matters (ie, the 
one added last gets priority)
- Maybe the behaviors can be tweaked slightly using the 
UIGestureRecognizerDelegate protocol -- ie changing the behavior of 
gestureRecognizerShouldBegin.
- Was there a particular reason you implemented this as a UIView subclass 
instead of as a UIGestureRecognizer subclass? Unless there is a particular 
limitation using the gesture recognizer framework may be a better long term 
solution.

Original comment by allen.po...@gmail.com on 2 Jan 2011 at 6:52

GoogleCodeExporter commented 9 years ago
No reason whatsoever... I implemented it as a UIView for commodity reasons, as 
I was in a hurry... I agree that using the gesture framework is a better idea...

Original comment by dapetc...@gmail.com on 2 Jan 2011 at 6:58