No "GestureDown" event -- how do I detect one finger down?
Posted: Sat Oct 26, 2024 5:19 pm
I'm starting to work with the "Gesture" events when accessing my apps from a touchscreen device such as an iPhone or iPad. These devices don't normally have a mouse attached, and I need things to work without a mouse. I'm finding the Gesture events extremely useful in this case, but there is one thing that I think is missing, unless I just haven't figured out how to access it. I want to detect when a user touches ONE finger on an object but HAS NOT YET started to drag that finger. The GesturePan event works great once the user starts to drag their finger, but it does not generate any event until they start that dragging. I thought that perhaps I could accomplish what I need by intercepting an onMouseDown event, which when using an actual mouse fires when the mouse button is clicked DOWN. Unfortunately, from my testing, I do get a MouseDown event when the user is using their finger but it only fires when they left their finger UP off the screen, not when they press it down.
None of the other Gesture events will give me what I want. GesturePressAndTap only fires when a second finger is tapped. GestureRotate requires two fingers, and in any event is used to detect rotation, not pressing. GestureTwoFingerTap obviously requires two fingers. GestureZoom also requires two fingers.
So: Is there any way I can detect when a user presses one finger down on a touchscreen before they start dragging it? Thanks for any thoughts. / Rav
None of the other Gesture events will give me what I want. GesturePressAndTap only fires when a second finger is tapped. GestureRotate requires two fingers, and in any event is used to detect rotation, not pressing. GestureTwoFingerTap obviously requires two fingers. GestureZoom also requires two fingers.
So: Is there any way I can detect when a user presses one finger down on a touchscreen before they start dragging it? Thanks for any thoughts. / Rav