This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Chris Chen
Posted Jul 19 - Read on Facebook

Hi all, I am very new to Framer and love this fast prototyping tool!! It really helps designers to communicate their
Ideas 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 !

8 Comments

Benjamin Den Boer

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/ :-)

Chris Chen

Benjamin Den Boer Thank you! Thats was very quick reply! Sure I will spend time on Hammer.JS. Thanks again!

Chris Chen

Hammer Works Perfect !

Antonio Krämer Fernandez

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!

Jordan Robert Dobson

If someone puts this together with Hammer I'd be glad to include it on #framercode

Chris Chen

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/

Antonio Krämer Fernandez

nice thanks, this was just what I needed!

Jordan Robert Dobson

Awesome!

Read the entire post on Facebook