@zag-js/slider 1.15.4 → 1.15.6

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
@@ -388,6 +388,7 @@ function connect(service, normalize2) {
388
388
  style: getThumbStyle(service, index),
389
389
  onPointerDown(event) {
390
390
  if (!interactive) return;
391
+ if (!domQuery.isLeftClick(event)) return;
391
392
  send({ type: "THUMB_POINTER_DOWN", index });
392
393
  event.stopPropagation();
393
394
  },
package/dist/index.mjs CHANGED
@@ -386,6 +386,7 @@ function connect(service, normalize2) {
386
386
  style: getThumbStyle(service, index),
387
387
  onPointerDown(event) {
388
388
  if (!interactive) return;
389
+ if (!isLeftClick(event)) return;
389
390
  send({ type: "THUMB_POINTER_DOWN", index });
390
391
  event.stopPropagation();
391
392
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/slider",
3
- "version": "1.15.4",
3
+ "version": "1.15.6",
4
4
  "description": "Core logic for the slider widget implemented as a state machine",
5
5
  "keywords": [
6
6
  "js",
@@ -27,11 +27,11 @@
27
27
  "url": "https://github.com/chakra-ui/zag/issues"
28
28
  },
29
29
  "dependencies": {
30
- "@zag-js/anatomy": "1.15.4",
31
- "@zag-js/core": "1.15.4",
32
- "@zag-js/dom-query": "1.15.4",
33
- "@zag-js/utils": "1.15.4",
34
- "@zag-js/types": "1.15.4"
30
+ "@zag-js/anatomy": "1.15.6",
31
+ "@zag-js/core": "1.15.6",
32
+ "@zag-js/dom-query": "1.15.6",
33
+ "@zag-js/utils": "1.15.6",
34
+ "@zag-js/types": "1.15.6"
35
35
  },
36
36
  "devDependencies": {
37
37
  "clean-package": "2.2.0"