mirror of
https://github.com/scratchfoundation/Gestouch.git
synced 2025-02-16 23:40:14 -05:00
Minor cleanup in LongPressGesture
This commit is contained in:
parent
c5f91e6de1
commit
4bdefd12bb
1 changed files with 6 additions and 7 deletions
|
@ -14,8 +14,8 @@ package org.gestouch.gestures
|
|||
*/
|
||||
[Event(name="gestureLongPress", type="org.gestouch.events.LongPressGestureEvent")]
|
||||
/**
|
||||
* TODO: -location
|
||||
* - check on iOS (Obj-C) what happens when numTouchesRequired=2, two finger down, then quickly release one.
|
||||
* TODO:
|
||||
* - add numTapsRequired
|
||||
*
|
||||
* @author Pavel fljot
|
||||
*/
|
||||
|
@ -25,9 +25,9 @@ package org.gestouch.gestures
|
|||
/**
|
||||
* The minimum time interval in millisecond fingers must press on the target for the gesture to be recognized.
|
||||
*
|
||||
* @default 500
|
||||
*/
|
||||
public var minPressDuration:uint = 500;
|
||||
* @default 500
|
||||
*/
|
||||
public var minPressDuration:uint = 500;
|
||||
public var slop:Number = Gesture.DEFAULT_SLOP;
|
||||
|
||||
protected var _timer:Timer;
|
||||
|
@ -118,7 +118,6 @@ package org.gestouch.gestures
|
|||
|
||||
override protected function onTouchEnd(touch:Touch):void
|
||||
{
|
||||
//TODO: check proper condition (behavior) on iOS native
|
||||
if (_numTouchesRequiredReached)
|
||||
{
|
||||
if (state == GestureState.BEGAN || state == GestureState.CHANGED)
|
||||
|
@ -141,7 +140,7 @@ package org.gestouch.gestures
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
override protected function onDelayedRecognize():void
|
||||
{
|
||||
if (hasEventListener(LongPressGestureEvent.GESTURE_LONG_PRESS))
|
||||
|
|
Loading…
Reference in a new issue