Minor Changes
-
#1271
bc588c7
Thanks @clauderic! - IntroducebypassActivationConstraint()
option forPointerSensor
,MouseSensor
andTouchSensor
. 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 theactivatorNode
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! - Allowdelay
anddistance
activation constraints to be used concurrently forMouseSensor
,TouchSensor
andPointerSensor
.