Skip to content

Commit fee0f1f

Browse files
committed
chore(Picviewer CE+): Auto-generate dist.user.js
1 parent 0f60c6b commit fee0f1f

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

Picviewer CE+/dist.user.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25831,7 +25831,7 @@ ImgOps | https://imgops.com/#b#`;
2583125831
}
2583225832
}
2583325833

25834-
var checkFloatBarTimer, initMouse = false, lastEvent, composedTarget;
25834+
var checkFloatBarTimer, initMouse = false, lastEvent, composedTarget, checking = false;
2583525835
function globalMouseoverHandler(e) {
2583625836
if (galleryMode) return;//库模式全屏中......
2583725837
if (e.target == ImgWindowC.overlayer) return;
@@ -25851,6 +25851,13 @@ ImgOps | https://imgops.com/#b#`;
2585125851
}
2585225852
return;
2585325853
} else {
25854+
if (checking) {
25855+
setTimeout(() => {
25856+
checking = false;
25857+
}, 50);
25858+
return;
25859+
}
25860+
checking = true;
2585425861
if (!canPreview) return;
2585525862
let target = e.target;
2585625863
if (target.nodeName == "PICTURE"){
@@ -25865,8 +25872,15 @@ ImgOps | https://imgops.com/#b#`;
2586525872
e = lastEvent;
2586625873
} else {
2586725874
lastEvent = e;
25868-
let path = e && e.composedPath && e.composedPath();
25869-
composedTarget = path && path[0];
25875+
if (checking) {
25876+
setTimeout(() => {
25877+
checking = false;
25878+
}, 50);
25879+
} else {
25880+
checking = true;
25881+
let path = e && e.composedPath && e.composedPath();
25882+
composedTarget = path && path[0];
25883+
}
2587025884
}
2587125885
clearTimeout(checkFloatBarTimer);
2587225886
checkFloatBarTimer = setTimeout(function() {

0 commit comments

Comments
 (0)