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

What is Framer? Join the Community
Return to index
Garrett Murray
Posted Mar 07 - Read on Facebook

Anyone have a good way to simulate a long press in Framer? I've tried accomplishing it with Touches.Start and Touches.End and some timers and such, but I can't get it to work in that animations still end up firing even if I tell them to stop. I'm prototyping some iOS stuff and a long press gesture is necessary for this item.


Braden Hamm

I'm also wondering this. I'd like to have one animation for tap and another for tap and hold.

Marcelo Eduardo Oliveira

I usually add a library like hammer.js for those tasks

Jay Stakelon

I actually did this using delays like you mentioned, with distinct long hold and tap animations - It'll break if you spam it with clicks but, you know, just be gentle.

Garrett Murray

Marcelo Eduardo Oliveira Does Hammer.js work alongside Framer.js when it comes to CoffeeScript? I just tried using Hammer but got loads of errors.

Garrett Murray

Jay Stakelon Nice. I'm gonna try your method, which while very similar to mind, differs slightly in that it, you know WORKS. =)

Fran Pérez

This is my solution, similar approach :)

Read the entire post on Facebook