@mlola-ui/engine 1.1.5 → 1.1.7

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.
@@ -458,7 +458,8 @@ A single value chosen from a range.
458
458
  - <kbd>Home</kbd> / <kbd>End</kbd>: Jump to the minimum or maximum.
459
459
  - <kbd>PageUp</kbd> / <kbd>PageDown</kbd>: Move by a larger step.
460
460
  - State changes:
461
- - On pointer down on the track, or drag the thumb, set the value from the pointer position, snapped to the step to within min and max.
461
+ - On mouse or pen down anywhere on the control row, then drag, set the value from the pointer position, snapped to the step to within min and max.
462
+ - On a finger moving sideways on the control row, or a tap on it, set the value from the finger position; a finger moving up or down scrolls the page and changes nothing to within min and max.
462
463
 
463
464
  ## If you are unsure
464
465
 
@@ -1268,9 +1268,14 @@
1268
1268
  ],
1269
1269
  "transitions": [
1270
1270
  {
1271
- "on": "pointer down on the track, or drag the thumb",
1271
+ "on": "mouse or pen down anywhere on the control row, then drag",
1272
1272
  "set": "the value from the pointer position, snapped to the step",
1273
1273
  "to": "within min and max"
1274
+ },
1275
+ {
1276
+ "on": "a finger moving sideways on the control row, or a tap on it",
1277
+ "set": "the value from the finger position; a finger moving up or down scrolls the page and changes nothing",
1278
+ "to": "within min and max"
1274
1279
  }
1275
1280
  ]
1276
1281
  }
@@ -4571,6 +4571,17 @@ button.ml-breadcrumb-link {
4571
4571
  inset: calc(-1 * var(--ml-space-1)) 0;
4572
4572
  }
4573
4573
 
4574
+ /* A finger needs more: 24 px of grab area on a touch screen. */
4575
+ @media (pointer: coarse) {
4576
+ .ml-resizable-handle::after {
4577
+ inset: 0 calc(-1 * var(--ml-space-2));
4578
+ }
4579
+
4580
+ .ml-resizable[data-direction="vertical"] .ml-resizable-handle::after {
4581
+ inset: calc(-1 * var(--ml-space-2)) 0;
4582
+ }
4583
+ }
4584
+
4574
4585
  /* components/segmented-control */
4575
4586
  /* In a narrow container the options wrap onto a second row instead of spilling out. */
4576
4587
  .ml-segmented-control {
@@ -5153,6 +5164,9 @@ button.ml-breadcrumb-link {
5153
5164
  width: 100%;
5154
5165
  align-items: center;
5155
5166
  min-height: var(--ml-space-6);
5167
+ /* A finger scrolls the page up and down; sideways it moves the value. */
5168
+ touch-action: pan-y;
5169
+ cursor: pointer;
5156
5170
  }
5157
5171
 
5158
5172
  .ml-slider-field[data-size="sm"] .ml-slider-track {
@@ -5174,8 +5188,6 @@ button.ml-breadcrumb-link {
5174
5188
  height: var(--ml-space-1-5);
5175
5189
  border-radius: var(--ml-radius-pill);
5176
5190
  background: var(--ml-track);
5177
- touch-action: none;
5178
- cursor: pointer;
5179
5191
  }
5180
5192
 
5181
5193
  .ml-slider-range {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlola-ui/engine",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Framework-free CSS, spring easings, and the machine-readable contract for Mlola UI",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -293,10 +293,15 @@ export const behaviors = {
293
293
  ],
294
294
  transitions: [
295
295
  {
296
- on: "pointer down on the track, or drag the thumb",
296
+ on: "mouse or pen down anywhere on the control row, then drag",
297
297
  set: "the value from the pointer position, snapped to the step",
298
298
  to: "within min and max",
299
299
  },
300
+ {
301
+ on: "a finger moving sideways on the control row, or a tap on it",
302
+ set: "the value from the finger position; a finger moving up or down scrolls the page and changes nothing",
303
+ to: "within min and max",
304
+ },
300
305
  ],
301
306
  },
302
307
  };