The modern, lightweight, performant, accessible and extensible drag & drop toolkit for React.
bc588c7
, b417f0f
, f342d5e
]:
bc588c7
, b417f0f
, f342d5e
]:
#1271 bc588c7
Thanks @clauderic! - Introduce bypassActivationConstraint()
option for PointerSensor
, MouseSensor
and TouchSensor
. This optional argument can be used to conditionally bypass activation constraints. An example use-case would be to bypass activation constraints when the activator event target is the activatorNode
of a draggable source.
useSensor(PointerSensor, {
activationConstraint: {
delay: 250,
tolerance: 5,
},
bypassActivationConstraint({event, activeNode}) {
return activeNode.activatorNode.current?.contains(event.target);
},
});
#1269 b417f0f
Thanks @clauderic! - Allow delay
and distance
activation constraints to be used concurrently for MouseSensor
, TouchSensor
and PointerSensor
.
aabb8bd
, f342d5e
]:
da888ee
Thanks @WillDonohoe! - Fix errors with calls to getComputedStyle
in Firefox when destructuring from the window object#788 da94c02
Thanks @clauderic! - Bug fixes for React 18 Strict Mode
Updated dependencies [da94c02
]:
#823 b065c37
Thanks @DaniGuardiola! - Add missing peer dependency to @dnd-kit/modifiers
Updated dependencies [da7c60d
]: