@mapmap/maps 0.11.1 → 0.11.2

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.js CHANGED
@@ -4709,6 +4709,7 @@ function firstRow(value) {
4709
4709
 
4710
4710
  // src/camera.ts
4711
4711
  var GESTURE_END_EVENTS = ["mouseup", "touchend", "touchcancel"];
4712
+ var POINTER_START_EVENTS = /* @__PURE__ */ new Set(["mousedown", "touchstart"]);
4712
4713
  var INTERACTION_EVENTS = [
4713
4714
  "mousedown",
4714
4715
  "touchstart",
@@ -4738,7 +4739,7 @@ var NavigationCamera = class {
4738
4739
  if (!ev?.originalEvent || this.destroyed) return;
4739
4740
  this.movedWhileFree = false;
4740
4741
  this.currentMode = "free";
4741
- this.m.stop();
4742
+ if (!POINTER_START_EVENTS.has(ev.type ?? "")) this.m.stop();
4742
4743
  this.scheduleRecentre();
4743
4744
  };
4744
4745
  /** A user-driven move between pointer-down and pointer-up: a real drag. */