sciactive / tinygesture

Very small gesture recognizer for JavaScript. Swipe, pan, tap, doubletap, longpress, pinch, and rotate.
https://sciactive.github.io/tinygesture/
Apache License 2.0
202 stars 18 forks source link

Any is this better than Hammer, Zingtouch or Interact.js #7

Closed Mapiac closed 9 months ago

Mapiac commented 4 years ago

Is there a sweet spot that tinygesture shines over these other 3? Or is there a widely accepted and used lib for all the touch events in 2020? Thanks

hperrin commented 3 years ago

I'd say TinyGesture's main benefit over other libraries is that it really is ridiculously tiny. It's 2.4 KB minified and gzipped, and it supports all the common touch gestures except pinch.

mvenghaus commented 10 months ago

@hperrin but "pinch" would it make perfect ;)

hperrin commented 10 months ago

Yeah, you're right. It probably wouldn't take that much code too. Hmm...

mvenghaus commented 10 months ago

@hperrin would be very great if you can integrate this .. this code here should be easy to implement

https://apex.oracle.com/pls/apex/vmorneau/r/pinch-and-zoom/pinch-and-zoom-js

hperrin commented 9 months ago

Yes, I'd want to add rotate too, since calculating the angle would be really easy.

hperrin commented 9 months ago

Pinch and rotate are now done! 8d38cacbb2ddbfbc4baa3686b05a29b7c67d2bad