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
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 to enabled: false in order to be in a blank state when re-enabling it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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