canvu-react 0.4.64 → 0.4.66

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.
package/dist/index.d.cts CHANGED
@@ -93,7 +93,7 @@ type ViewportInputOptions = {
93
93
  * When `false`, one-finger / primary-button drag does **not** pan the camera (e.g. shape tools).
94
94
  * Wheel zoom and two-finger pinch still work.
95
95
  */
96
- allowPrimaryPointerPan?: () => boolean;
96
+ allowPrimaryPointerPan?: (event: PointerEvent) => boolean;
97
97
  };
98
98
  /**
99
99
  * Attaches wheel (pan / Ctrl+zoom), pointer drag pan, and two-finger pinch zoom.
package/dist/index.d.ts CHANGED
@@ -93,7 +93,7 @@ type ViewportInputOptions = {
93
93
  * When `false`, one-finger / primary-button drag does **not** pan the camera (e.g. shape tools).
94
94
  * Wheel zoom and two-finger pinch still work.
95
95
  */
96
- allowPrimaryPointerPan?: () => boolean;
96
+ allowPrimaryPointerPan?: (event: PointerEvent) => boolean;
97
97
  };
98
98
  /**
99
99
  * Attaches wheel (pan / Ctrl+zoom), pointer drag pan, and two-finger pinch zoom.
package/dist/index.js CHANGED
@@ -736,7 +736,7 @@ function attachViewportInput(options) {
736
736
  if (touchMomentum) {
737
737
  touchMomentum.cancel();
738
738
  }
739
- const panOk = allowPrimaryPointerPan();
739
+ const panOk = allowPrimaryPointerPan(e);
740
740
  if (e.pointerType === "mouse" && e.button === 0) {
741
741
  if (!panOk) {
742
742
  return;