Drag/Pinch/Rotate examplefor Framer.js v3 in conjunction with Hammer.js v1.1.3
probs to Koen and Tisho!
Beware: x/y-position may change after the release of a multi-touch gesture (expected behavior)
Hold "shift" while dragging for a fake multitouch-gesture.
added reset on doubleTap
Pinch is a bit buggy, the centering causes the box to jump around when stopping the gesture
Yeah, I know - it says so in the description above ;)
When you lift one of your finger from the screen, Hammer interprets your other finger as a drag-movement. Haven't found a way to fix this bug yet.
Great, keep us posted! :)
If you need some help, don't bother to ask!
Ah, my bad Marc. I totally skipped over that :)
Marc Krenn thanks for the example; the pinch and drag events really helped me mock the zoom and pan functionality of an interactive map. Did you ever find a way to fix the bug that causes the x/y position to jump? Thanks!
Nope, unfortunately not - but tbh, I haven't really looked into it at all. Maybe using a newer version of hammer fixes this particular problem?! :)
I updated the library, but the problem persists. Good thought though, Marc Krenn. Thanks, again.