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

What is Framer? Join the Community
Return to index
Louis Currie
Posted Nov 02 - Read on Facebook

Dear Framerers is there any Event that can listen to Touch + Hold + x, y position? Mouseover would not be ideal in this case. I attached the prototype so you understand what I'm trying to achieve. Thanks in advance and feedback welcome :)

4 Comments

Benjamin Den Boer

Hey Louis Currie - you could use a draggable layer, then listen to the "Events.Move" event and grab it's x & y coordinates from there too. Check out the code example included here, too: http://framerjs.com/docs/#events.Move :-)

Andrew Nalband

Hey Louis Currie, I use Jordan Robert Dobson's Pointer module for all kinds of stuff, and this is the perfect use case. Check this out: http://share.framerjs.com/ipo7tv87ow7y/ Basically, it prints out the id for whatever dot you are hovering over, so all you'd have to do is say what to do depending on the dot you're on. TouchMove behaves a little weirdly in the browser, because it fires while you're hovering, but this should work fine on mobile. If you need it to work in the browser and can't sort it out, let me know and I'll help you get it working.

Andrew Nalband

This is where the magic happens

Jordan Robert Dobson

Nice use of those multi values in if statements.

Read the entire post on Facebook