-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event help #18
Comments
Yeah this is the way it currently behaves- the callback is only called when a gesture is "recognized". Which for Pinch only happens during the "move" phase. You could subclass Pinch and override the start/end methods. I've been thinking about changing this to a more event/listener based approach where gestures emit start/move/stop/cancel events, perhaps as well as a "recognize" event. We'll see if I find the time... |
@mvanderkamp Appreciate the clarification. Yes, it would definitely help! I'll see if I can hack something together. Thank you. |
@chasegiunta I started taking a crack at this. My rough idea is to switch to an event emitting system and migrate to TypeScript for a v2.0.0 of the library. Since you're interested, I wonder if I could ask you some questions:
|
Hi there! It's possible I'm being dense here, but I'm attempting to figure out how I can detect the start and end of a pinch gesture.
I was assuming that the
phase
property would let me know whether the callback isstart
orend
, but in all cases, it's coming back asmove
.Am I missing something? Thank you
The text was updated successfully, but these errors were encountered: