@zag-js/splitter 1.15.5 → 1.15.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.
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -353,7 +353,7 @@ function connect(service, normalize) {
|
|
|
353
353
|
[horizontal ? "minHeight" : "minWidth"]: "0"
|
|
354
354
|
},
|
|
355
355
|
onPointerDown(event) {
|
|
356
|
-
if (event
|
|
356
|
+
if (!domQuery.isLeftClick(event)) return;
|
|
357
357
|
if (disabled) {
|
|
358
358
|
event.preventDefault();
|
|
359
359
|
return;
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createAnatomy } from '@zag-js/anatomy';
|
|
2
|
-
import { trackPointerMove, queryAll, dataAttr, getEventKey, getEventPoint } from '@zag-js/dom-query';
|
|
2
|
+
import { trackPointerMove, queryAll, dataAttr, getEventKey, isLeftClick, getEventPoint } from '@zag-js/dom-query';
|
|
3
3
|
import { prev, next, ensure, isEqual, setRafTimeout, ensureProps, createSplitProps } from '@zag-js/utils';
|
|
4
4
|
import { createMachine } from '@zag-js/core';
|
|
5
5
|
import { createProps } from '@zag-js/types';
|
|
@@ -351,7 +351,7 @@ function connect(service, normalize) {
|
|
|
351
351
|
[horizontal ? "minHeight" : "minWidth"]: "0"
|
|
352
352
|
},
|
|
353
353
|
onPointerDown(event) {
|
|
354
|
-
if (event
|
|
354
|
+
if (!isLeftClick(event)) return;
|
|
355
355
|
if (disabled) {
|
|
356
356
|
event.preventDefault();
|
|
357
357
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/splitter",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.7",
|
|
4
4
|
"description": "Core logic for the splitter 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.
|
|
31
|
-
"@zag-js/core": "1.15.
|
|
32
|
-
"@zag-js/types": "1.15.
|
|
33
|
-
"@zag-js/dom-query": "1.15.
|
|
34
|
-
"@zag-js/utils": "1.15.
|
|
30
|
+
"@zag-js/anatomy": "1.15.7",
|
|
31
|
+
"@zag-js/core": "1.15.7",
|
|
32
|
+
"@zag-js/types": "1.15.7",
|
|
33
|
+
"@zag-js/dom-query": "1.15.7",
|
|
34
|
+
"@zag-js/utils": "1.15.7"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"clean-package": "2.2.0"
|