@mmstack/primitives 20.15.0 → 20.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3582,7 +3582,7 @@ function createPointerDrag(opt) {
|
|
|
3582
3582
|
return base;
|
|
3583
3583
|
}
|
|
3584
3584
|
const hostRef = inject((ElementRef), { optional: true });
|
|
3585
|
-
const { target = hostRef?.nativeElement, coordinateSpace = 'client', activationThreshold = 3, throttle = 16, handleSelector, buttons = [0], stopPropagation = false, debugName = 'pointerDrag', } = opt ?? {};
|
|
3585
|
+
const { target = hostRef?.nativeElement, coordinateSpace = 'client', activationThreshold = 3, throttle = 16, handleSelector, buttons = [0], stopPropagation = false, capture = false, debugName = 'pointerDrag', } = opt ?? {};
|
|
3586
3586
|
const resolve = (t) => {
|
|
3587
3587
|
if (!t)
|
|
3588
3588
|
return null;
|
|
@@ -3714,6 +3714,7 @@ function createPointerDrag(opt) {
|
|
|
3714
3714
|
const controller = new AbortController();
|
|
3715
3715
|
el.addEventListener('pointerdown', onDown(el), {
|
|
3716
3716
|
signal: controller.signal,
|
|
3717
|
+
capture,
|
|
3717
3718
|
});
|
|
3718
3719
|
return () => {
|
|
3719
3720
|
controller.abort();
|