@mmstack/primitives 21.10.0 → 21.10.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.
|
@@ -3552,7 +3552,7 @@ function createPointerDrag(opt) {
|
|
|
3552
3552
|
return base;
|
|
3553
3553
|
}
|
|
3554
3554
|
const hostRef = inject((ElementRef), { optional: true });
|
|
3555
|
-
const { target = hostRef?.nativeElement, coordinateSpace = 'client', activationThreshold = 3, throttle = 16, handleSelector, buttons = [0], stopPropagation = false, debugName = 'pointerDrag', } = opt ?? {};
|
|
3555
|
+
const { target = hostRef?.nativeElement, coordinateSpace = 'client', activationThreshold = 3, throttle = 16, handleSelector, buttons = [0], stopPropagation = false, capture = false, debugName = 'pointerDrag', } = opt ?? {};
|
|
3556
3556
|
const resolve = (t) => {
|
|
3557
3557
|
if (!t)
|
|
3558
3558
|
return null;
|
|
@@ -3684,6 +3684,7 @@ function createPointerDrag(opt) {
|
|
|
3684
3684
|
const controller = new AbortController();
|
|
3685
3685
|
el.addEventListener('pointerdown', onDown(el), {
|
|
3686
3686
|
signal: controller.signal,
|
|
3687
|
+
capture,
|
|
3687
3688
|
});
|
|
3688
3689
|
return () => {
|
|
3689
3690
|
controller.abort();
|