|
12 | 12 | // @description:ja 画像を強力に閲覧できるツール。ポップアップ表示、拡大・縮小、回転、一括保存などの機能を自動で実行できます |
13 | 13 | // @description:pt-BR Poderosa ferramenta de visualização de imagens on-line, que pode pop-up/dimensionar/girar/salvar em lote imagens automaticamente |
14 | 14 | // @description:ru Мощный онлайн-инструмент для просмотра изображений, который может автоматически отображать/масштабировать/вращать/пакетно сохранять изображения |
15 | | -// @version 2025.9.30.1 |
| 15 | +// @version 2025.10.5.1 |
16 | 16 | // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD////29vbKysoqKioiIiKysrKhoaGTk5N9fX3z8/Pv7+/r6+vk5OTb29vOzs6Ojo5UVFQzMzMZGRkREREMDAy4uLisrKylpaV4eHhkZGRPT08/Pz/IfxjQAAAAgklEQVQoz53RRw7DIBBAUb5pxr2m3/+ckfDImwyJlL9DDzQgDIUMRu1vWOxTBdeM+onApENF0qHjpkOk2VTwLVEF40Kbfj1wK8AVu2pQA1aBBYDHJ1wy9Cf4cXD5chzNAvsAnc8TjoLAhIzsBao9w1rlVTIvkOYMd9nm6xPi168t9AYkbANdajpjcwAAAABJRU5ErkJggg== |
17 | 17 | // @namespace https://github.com/hoothin/UserScripts |
18 | 18 | // @homepage https://github.com/hoothin/UserScripts/tree/master/Picviewer%20CE%2B |
@@ -24038,10 +24038,20 @@ ImgOps | https://imgops.com/#b#`; |
24038 | 24038 |
|
24039 | 24039 | if (bodyStyle.position === "static") { |
24040 | 24040 | offsetParent = document.documentElement; |
| 24041 | + bodyPosi = body.getBoundingClientRect(); |
| 24042 | + let docPosy = offsetParent.getBoundingClientRect(); |
| 24043 | + if (bodyPosi.top == docPosy.top && bodyPosi.left == docPosy.left && bodyPosi.bottom == docPosy.bottom && bodyPosi.right == docPosy.right) { |
| 24044 | + bodyPosi = { |
| 24045 | + top: -offsetParent.scrollTop, |
| 24046 | + left: -offsetParent.scrollLeft, |
| 24047 | + bottom: offsetParent.scrollHeight - offsetParent.scrollTop, |
| 24048 | + right: offsetParent.scrollWidth - offsetParent.scrollLeft |
| 24049 | + }; |
| 24050 | + } |
24041 | 24051 | } else { |
24042 | 24052 | offsetParent = body; |
| 24053 | + bodyPosi = offsetParent.getBoundingClientRect(); |
24043 | 24054 | } |
24044 | | - bodyPosi = offsetParent.getBoundingClientRect(); |
24045 | 24055 |
|
24046 | 24056 |
|
24047 | 24057 | var scrolled=getScrolled(offsetParent); |
@@ -24145,6 +24155,7 @@ ImgOps | https://imgops.com/#b#`; |
24145 | 24155 | window.addEventListener('scroll',this._scrollHandler,true); |
24146 | 24156 | }, |
24147 | 24157 | hide:function(){ |
| 24158 | + lastEvent = null; |
24148 | 24159 | clearTimeout(this.showTimer); |
24149 | 24160 | this.floatBar.style.opacity=0.01; |
24150 | 24161 | this.shown=false; |
@@ -26204,7 +26215,7 @@ ImgOps | https://imgops.com/#b#`; |
26204 | 26215 | if (e.relatedTarget == ImgWindowC.overlayer) return; |
26205 | 26216 | if(uniqueImgWin && !uniqueImgWin.removed){ |
26206 | 26217 | if(checkPreview(e)){ |
26207 | | - if (!uniqueImgWin.data.img) return uniqueImgWin && uniqueImgWin.remove(); |
| 26218 | + if (!uniqueImgWin.data.img || !uniqueImgWin.data.img.parentNode) return uniqueImgWin && uniqueImgWin.remove(); |
26208 | 26219 | let showArea=uniqueImgWin.data.img.getBoundingClientRect(); |
26209 | 26220 | if(e.clientX < showArea.left + 20 || |
26210 | 26221 | e.clientX > showArea.right - 20 || |
|
0 commit comments