Two finger tap #400
-
Hey all, thanks for the wonderful library. We're using it in tldraw! I'm trying to implement a two-finger/three-finger taps for undo and redo, similar to what you may have used in procreate or other apps for the iPad. Before I start trying to implement this on my own, I was wondering if anyone has worked on this before? Or if there is anything in the library that could help me in recognizing these events? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @steveruizok, thanks for the kind words, I'm a big fan of your work btw ;) There's no easy way to do this out of the box, although this is definitely something I could work on since the whole multi fingers detection is there. In the meantime you could do something like this: But it uses swipe instead of tap, which I understand is not ideal. Give me some time, I'll figure something out, possibly introducing a new hook like |
Beta Was this translation helpful? Give feedback.
Hey @steveruizok, thanks for the kind words, I'm a big fan of your work btw ;)
There's no easy way to do this out of the box, although this is definitely something I could work on since the whole multi fingers detection is there. In the meantime you could do something like this:
#295
But it uses swipe instead of tap, which I understand is not ideal. Give me some time, I'll figure something out, possibly introducing a new hook like
useTap
.