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

What is Framer? Join the Community
Return to index
Dave Feldman
Posted Jan 29 - Read on Facebook

I'm trying to implement both short- and long-click actions on a layer. Looks like this is pretty straightforward with Event.TouchStart and Event.TouchEnd. But, having written it, it would be nice to wrap it up in its own event that I can apply to layers, e.g., Event.MultiClick if I wanted both short and long in one event; or Event.LongPress to handle just the long one. Is there a way to do this?


Mohamed Tedjani Meftah

I don't think you can avoid listening for click/touch start/end events. but you can create a handler that does the math then trigger a custom event for each case (Long or Short press)
Edit: Reference for creating events []

Read the entire post on Facebook