Minor Changes
-
#1271
bc588c7Thanks @clauderic! - IntroducebypassActivationConstraint()option forPointerSensor,MouseSensorandTouchSensor. 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 theactivatorNodeof a draggable source.useSensor(PointerSensor, { activationConstraint: { delay: 250, tolerance: 5, }, bypassActivationConstraint({event, activeNode}) { return activeNode.activatorNode.current?.contains(event.target); }, });
-
#1269
b417f0fThanks @clauderic! - Allowdelayanddistanceactivation constraints to be used concurrently forMouseSensor,TouchSensorandPointerSensor.