@yuneta/gobj-ui 7.23.109 → 7.23.110

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.
@@ -9479,7 +9479,10 @@ function mt_create$15(gobj) {
9479
9479
  let map_settings = (0, _yuneta_gobj_js.json_deep_copy)((0, _yuneta_gobj_js.gobj_read_attr)(gobj, "map_settings"));
9480
9480
  let $map = (0, _yuneta_gobj_js.gobj_read_attr)(gobj, "$map");
9481
9481
  if ($map) $map.classList.add(GCLASS_NAME$15);
9482
- Object.assign(map_settings, { container: $map });
9482
+ Object.assign(map_settings, {
9483
+ container: $map,
9484
+ cooperativeGestures: true
9485
+ });
9483
9486
  priv.onClick = (ev) => {
9484
9487
  onClick(gobj, ev);
9485
9488
  };
@@ -9474,7 +9474,10 @@ function mt_create$15(gobj) {
9474
9474
  let map_settings = json_deep_copy(gobj_read_attr(gobj, "map_settings"));
9475
9475
  let $map = gobj_read_attr(gobj, "$map");
9476
9476
  if ($map) $map.classList.add(GCLASS_NAME$15);
9477
- Object.assign(map_settings, { container: $map });
9477
+ Object.assign(map_settings, {
9478
+ container: $map,
9479
+ cooperativeGestures: true
9480
+ });
9478
9481
  priv.onClick = (ev) => {
9479
9482
  onClick(gobj, ev);
9480
9483
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuneta/gobj-ui",
3
- "version": "7.23.109",
3
+ "version": "7.23.110",
4
4
  "type": "module",
5
5
  "main": "dist/gobj-ui.cjs.js",
6
6
  "module": "dist/gobj-ui.es.js",
package/src/c_yui_map.js CHANGED
@@ -119,6 +119,19 @@ function mt_create(gobj)
119
119
  }
120
120
  Object.assign(map_settings, {
121
121
  container: $map,
122
+ /* THE WHEEL DOES NOT ZOOM; Ctrl + wheel does -- the same
123
+ * vocabulary as the three graphs (`yui_graph_camera.js`), so a
124
+ * reader with a map and a graph open does not have to remember
125
+ * which is which. maplibre calls it `cooperativeGestures`, and
126
+ * it never blocks a wheel carrying ctrlKey, so a trackpad PINCH
127
+ * keeps zooming on every platform (a Mac gets Cmd as well, its
128
+ * own convention, which costs nothing).
129
+ *
130
+ * HERE and not in the attr's default value: a JSON attr is
131
+ * replaced WHOLESALE by a host that passes its own, so a
132
+ * default is a suggestion -- the demo passes `map_settings` and
133
+ * never saw it. This is the house gesture, not a suggestion. */
134
+ cooperativeGestures: true,
122
135
  });
123
136
 
124
137
  /*-----------------------------*