Am I misunderstanding how the activation constraints work somehow? The delay property does not seem to be working as I thought it would. #1470
Unanswered
zachkaigler
asked this question in
Q&A
Replies: 1 comment 2 replies
-
You're using |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pull up this super simple sandbox and open the dev tools console.
Click on the blue box and drag. Note that in the console you see messages alerting drag start and drag end. Refresh the preview and click on the blue box without dragging. Note that you'll see the same messages in the console.
Open up
App.tsx
and check out the activation constraints that I'm passing intouseSensor
:My understanding is that this should delay the drag event emission (and subsequently the draggability of the element itself) for five seconds, but instead you can drag immediately. My goal here is to implement a small delay before the drag event fires, so that one-off clicks don't call the
onDragStart
andonDragEnd
methods exposed byuseDndMonitor
.Am I fundamentally misunderstanding how these constraints work somehow?
Beta Was this translation helpful? Give feedback.
All reactions