How to stop drag gesture after enabled set to false #680
Unanswered
giovanni-bertoncelli
asked this question in
Q&A
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hi, I'm using useGesture in order to control the drag of a component that has nested another Controller with the same useGesture. I would like to enable the foreground controller and disable the background and viceversa without them conflicting.
I noticed that when I disabling the foreground one with property
enabled: false
, dragging the background and re-enabling the foreground one this continues the drag gesture like it has not been cancelled. Is there any way to reset the useGesture state when it is set toenabled: false
in order to be in a blank state when re-enabling it?Screen.Recording.2024-08-27.at.12.29.29.mov
Beta Was this translation helpful? Give feedback.
All reactions