Hi all, I am very new to Framer and love this fast prototyping tool!! It really helps designers to communicate theirIdeas to engineer so much easier.
However I am wondering is there any fast or simple way to have event listener for pinch, or three finger gestures ?
Thank you !
Hey Chris! Really glad to hear that! Well, Framer doesn't support multi-touch gestures yet, but you can quite easily integrate other libraries and use them within your prototypes. Check out Hammer.js for instance: http://hammerjs.github.io/ :-)
Benjamin Den Boer Thank you! Thats was very quick reply! Sure I will spend time on Hammer.JS. Thanks again!
Hammer Works Perfect !
Im also wondering how to use pinch gestures in a framer prototype and hammer js looks really promising but I dont have a clue where to start and how to integrate and use it… could you share how you use hammer js with framer? That would be so helpful, thanks!
If someone puts this together with Hammer I'd be glad to include it on #framercode
Hi all~ Thanks for the comments~
I am not really a programmer, so I found an example by Peter Ng in this group forum and just follow up his code. And here is what you can do to make Hammer work on your project with his sample.
1. copy "hammer.coffee" and "hammer.min.js" from his framer project to your project, these two files need to put under "modules" folder.
2. Add "<script src="modules/hammer.min.js"></script>" in your index.html
3.Type in your code " hammer = require "hammer" " to include hammer modules
This should give you the the event listeners you need for Pinch or swipe and so on.
Original Post Link: https://www.facebook.com/groups/framerjs/permalink/685744181552656/
nice thanks, this was just what I needed!