You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using this library to move images in an app - but I am having some trouble implementing 'snap' functionality. Desired behaviour is for the image to be moveable until it reaches a point where it will "stick". I have tried disabling "draggable" in the onChange event when it meets my conditions, but this causes the image to be reset to its original position before the start of the gesture, which looks bad.
One option might be to re-position the image in the onRelease function, but I would really prefer for this functionality to happen while the image is being dragged.
If someone else has accomplished similar behaviour using this library, or has suggestions, I would be all ears. Without this functionality I am probably going to have to go back to the native PanResponder components, which I would really rather avoid.
The text was updated successfully, but these errors were encountered:
I am using this library to move images in an app - but I am having some trouble implementing 'snap' functionality. Desired behaviour is for the image to be moveable until it reaches a point where it will "stick". I have tried disabling "draggable" in the onChange event when it meets my conditions, but this causes the image to be reset to its original position before the start of the gesture, which looks bad.
One option might be to re-position the image in the onRelease function, but I would really prefer for this functionality to happen while the image is being dragged.
If someone else has accomplished similar behaviour using this library, or has suggestions, I would be all ears. Without this functionality I am probably going to have to go back to the native PanResponder components, which I would really rather avoid.
The text was updated successfully, but these errors were encountered: