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 dnd-kit inside a Drawer.
When the drawer is scrolled to the top (scrollTop === 0) and I start dragging from a handle near the top of the drawer, the drawer begins to close due to swipe-down gestures.
To prevent this, I tried using an isDragging state:
👉 Is there a recommended or supported way to disable swipe-to-dismiss behavior when drag starts, especially using dnd-kit inside a drawer?
Any guidance or suggestions would be greatly appreciated!
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
Uh oh!
There was an error while loading. Please reload this page.
-
I am using dnd-kit inside a Drawer.
When the drawer is scrolled to the top (scrollTop === 0) and I start dragging from a handle near the top of the drawer, the drawer begins to close due to swipe-down gestures.
To prevent this, I tried using an isDragging state:
And in onDragStart:
However, this does not prevent the drawer from dismissing.
As a workaround, I currently use:
👉 Is there a recommended or supported way to disable swipe-to-dismiss behavior when drag starts, especially using dnd-kit inside a drawer?
Any guidance or suggestions would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions