Recently have been trying to find a simple way to do longpress as I am somewhat new to coffee script.
After digging around I have found two solutions—neither of which are ideal for what I am trying to accomplish:
1) http://codepen.io/stakes/pen/ubfnw2) http://framergroup.com/posts/664579473669127.html
Basically, I am looking for a more straightforward way to have longpress and click perform different actions on the same layer.
Appreciate any help!
I don't believe there's a Framer API that cleans up the code. Hammer.js provides press and tap events that probably do what you want. http://hammerjs.github.io/recognizer-press/.
looks like Jay's example is only like 20 lines... how much simpler do you want it to be?
Jay's example is awesome!! But even cooler / more beginner-friendly is if you could just say "x.on Events.Hold, ->" or "x.on Events.ForcePress" haha..one day...
Ah yeah, it definitely would be great to expand out the native Framer events. I think Koen might be working on this?
I think this is what you want Christian Dorian ? http://tr.im/FramerPressAndHold
Thanks Jordan Robert Dobson this is really helpful!