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

What is Framer? Join the Community
Return to index
Sergey Voronov
Posted Mar 12 - Read on Facebook

how i can make layer draggable on longpress or touchstart? seems was working ages before, but on latest library doesnt work - layer gets draggable enabled=true, but i can't drag untill touchend and touch start again :/

5 Comments

Steve Ruiz

you could fake it by enabling draggable but not actually allowing the layer to move until after a long press
https://framer.cloud/rGWAU/

Sergey Voronov

Yeah , but need it before longpress ends

Sergey Voronov

I can fake longpress with delay on touchstart, but same no luck with dragging before releas

Steve Ruiz

Isn't there a utils somewhere that simulates a press? It looks like draggable = true can't tell that a press is already in progress, and starts listening for future events. If you can pass it a fake "touchStart" type of event, that might do the trick.

Sergey Voronov

Thanx will research faking dragstart

Read the entire post on Facebook