Replies: 1 comment 3 replies
-
Try passing transition.type that |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a modal component that utalizes moti's animated presence to show and hide it self via spring transitions i.e.
This works excelent, element animates in and out based on some state logic from "above". I now extended it with this pan gesture logic, idea is that modal is swipable up and down, so user can dismiss it with gesture. You'll see that I need to make some changes to original as well:
All of this also works, however moving modal with gesture feels weird, I think it is due to
animateTo
using spring to animate between values. I'm trying to figure out how to bypass that so that gesture interactions feel more responsive / natural and only use springs when modal is not "touched" and opened or closed programatically.Beta Was this translation helpful? Give feedback.
All reactions