Skip to content

Commit e383523

Browse files
committed
Update Picviewer CE+.user.js
1 parent 456bb13 commit e383523

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25822,14 +25822,6 @@ ImgOps | https://imgops.com/#b#`;
2582225822
if (galleryMode) return;//库模式全屏中......
2582325823
if (e.target == ImgWindowC.overlayer) return;
2582425824
let canPreview = checkPreview(e);
25825-
if (e.type == "keydown") {
25826-
if (!lastEvent) return;
25827-
e = lastEvent;
25828-
} else {
25829-
lastEvent = e;
25830-
let path = e && e.composedPath && e.composedPath();
25831-
composedTarget = path && path[0];
25832-
}
2583325825
if (e.type == "mousemove") {
2583425826
if (!initMouse) {
2583525827
initMouse = true;
@@ -25854,6 +25846,14 @@ ImgOps | https://imgops.com/#b#`;
2585425846
}
2585525847
}
2585625848
if (!initMouse) return;
25849+
if (e.type == "keydown") {
25850+
if (!lastEvent) return;
25851+
e = lastEvent;
25852+
} else {
25853+
lastEvent = e;
25854+
let path = e && e.composedPath && e.composedPath();
25855+
composedTarget = path && path[0];
25856+
}
2585725857
clearTimeout(checkFloatBarTimer);
2585825858
checkFloatBarTimer = setTimeout(function() {
2585925859
if (!e || !e.target || !e.target.parentNode) return;

0 commit comments

Comments
 (0)