Hello! Does anyone have the same issues with draggable? When I attempted following code,
layerA.draggable.enabled = truelayerA.draggable.horizontal = falselayerA.on Events.DragEnd, -> layerA.animate properties: y: 0
the draggable element jumps and positions into random y points not to y:0. Am I missing something?
Hard to say with the code pasted like this, because the problem might be indentation. Could you add your project? (a link to it on framer.cloud)
Anyway, something like this should work:
(you don’t need to write ‘properties’ anymore)
Hello Tes Mat, thank you so much for your reply. I've uploaded it in the cloud: https://framer.cloud/HiMotLooks like the issue still persist. Any thoughts? It's supposed to animate to y:1102 on drag end.
Hi Minjong, I didn't have time to work out a solution but I think the reason it's happening is because when you let up on the mouse (dragEnd) it tries to animate while the layer is still moving. I disabled momentum dragging and it's working better.
listscreen.draggable.momentum = false