@classic-homes/maps-core 0.2.14 → 0.2.16

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.
@@ -319,6 +319,12 @@ interface MapProps extends BaseMapProps {
319
319
  touchZoomRotate?: boolean;
320
320
  /** Enable keyboard navigation */
321
321
  keyboard?: boolean;
322
+ /**
323
+ * Require two-finger touch panning and Ctrl/Cmd + scroll wheel zooming,
324
+ * showing MapLibre's built-in help overlay otherwise. Prevents map
325
+ * scroll-jacking on touch pages. Default: undefined (off).
326
+ */
327
+ cooperativeGestures?: boolean;
322
328
  /** Show attribution control */
323
329
  attributionControl?: boolean;
324
330
  /** Custom attribution text */
@@ -319,6 +319,12 @@ interface MapProps extends BaseMapProps {
319
319
  touchZoomRotate?: boolean;
320
320
  /** Enable keyboard navigation */
321
321
  keyboard?: boolean;
322
+ /**
323
+ * Require two-finger touch panning and Ctrl/Cmd + scroll wheel zooming,
324
+ * showing MapLibre's built-in help overlay otherwise. Prevents map
325
+ * scroll-jacking on touch pages. Default: undefined (off).
326
+ */
327
+ cooperativeGestures?: boolean;
322
328
  /** Show attribution control */
323
329
  attributionControl?: boolean;
324
330
  /** Custom attribution text */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@classic-homes/maps-core",
3
- "version": "0.2.14",
3
+ "version": "0.2.16",
4
4
  "description": "Core utilities and theme for Classic Theme maps",
5
5
  "keywords": [
6
6
  "maps",
@@ -86,6 +86,13 @@
86
86
  box-shadow: 0 0 0 2px hsl(var(--ring)) !important;
87
87
  }
88
88
 
89
+ /* Expand the 28px close button to a 44px touch target without visual change */
90
+ .maplibregl-popup-close-button::after {
91
+ content: '';
92
+ position: absolute;
93
+ inset: -8px;
94
+ }
95
+
89
96
  /* ==========================================================================
90
97
  Popup Tip/Arrow Styling
91
98