@zag-js/focus-visible 1.43.2 → 1.44.0
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 +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -83,7 +83,7 @@ function handleKeyboardEvent(e) {
|
|
|
83
83
|
}
|
|
84
84
|
function handlePointerEvent(e) {
|
|
85
85
|
const isMove = e.type === "pointermove" || e.type === "mousemove";
|
|
86
|
-
if (isMove && lastPointerPosition?.x === e.clientX && lastPointerPosition?.y === e.clientY) return;
|
|
86
|
+
if (isMove && e.isTrusted && lastPointerPosition?.x === e.clientX && lastPointerPosition?.y === e.clientY) return;
|
|
87
87
|
lastPointerPosition = { x: e.clientX, y: e.clientY };
|
|
88
88
|
currentModality = "pointer";
|
|
89
89
|
if (e.type === "mousedown" || e.type === "pointerdown") {
|
package/dist/index.mjs
CHANGED
|
@@ -53,7 +53,7 @@ function handleKeyboardEvent(e) {
|
|
|
53
53
|
}
|
|
54
54
|
function handlePointerEvent(e) {
|
|
55
55
|
const isMove = e.type === "pointermove" || e.type === "mousemove";
|
|
56
|
-
if (isMove && lastPointerPosition?.x === e.clientX && lastPointerPosition?.y === e.clientY) return;
|
|
56
|
+
if (isMove && e.isTrusted && lastPointerPosition?.x === e.clientX && lastPointerPosition?.y === e.clientY) return;
|
|
57
57
|
lastPointerPosition = { x: e.clientX, y: e.clientY };
|
|
58
58
|
currentModality = "pointer";
|
|
59
59
|
if (e.type === "mousedown" || e.type === "pointerdown") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/focus-visible",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.44.0",
|
|
4
4
|
"description": "Focus visible polyfill utility based on WICG",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"clean-package": "../../../clean-package.config.json",
|
|
29
29
|
"main": "dist/index.js",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@zag-js/dom-query": "1.
|
|
31
|
+
"@zag-js/dom-query": "1.44.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"clean-package": "2.2.0"
|