Disable state switch animation stop on click
It seems that the default Framer behaviour is to stop state switch animations on Click/Tap events.Is there any way to disable this behaviour and let the animations to fully finished even after a click?
Can you share what you are trying to achieve?
Thanks Jorn for your replySince my project is somehow complex, I've created a new simple project to show the problem that I've faced:https://framer.cloud/zVbos
In this project if you drag layerA (a little) downward and release the mouse button, layerA will smoothly continue dragging until it reaches to the 'inventory' state.
But if during the animation, you click inside the layer then layerA will stop in the middle of the way to the final state and this is unwanted for me.
You can fix this by listening to the mouseUp event instead of dragEnd.
Thanks Jonas !
But since mouseUp doesn't fire on mobile devices, I tried TouchEnd and now it works both on desktop and mobile.Thanks again for your helpful hint!
BTW, I've updated the sample project for anyone else that might find it helpful.
Good to hear!