|
6 | 6 | // @description Powerful picture viewing tool online, which can popup/scale/rotate/batch save pictures automatically |
7 | 7 | // @description:zh-CN 在线看图工具,支持图片翻转、旋转、缩放、弹出大图、批量保存 |
8 | 8 | // @description:zh-TW 線上看圖工具,支援圖片翻轉、旋轉、縮放、彈出大圖、批量儲存 |
9 | | -// @version 2019.9.21.1 |
| 9 | +// @version 2019.9.22.1 |
10 | 10 | // @created 2011-6-15 |
11 | 11 | // @namespace http://userscripts.org/users/NLF |
12 | 12 | // @homepage http://hoothin.com |
|
205 | 205 | imgWindowEscKey:"Esc键关闭", |
206 | 206 | imgWindowDblClickImgWindow:"双击图片窗口关闭", |
207 | 207 | imgWindowClickOutside:"点击图片外部关闭", |
| 208 | + imgWindowClickOutsideTip:"仅当覆盖层显示时生效", |
208 | 209 | none:'无', |
209 | 210 | click:'单击', |
210 | 211 | dblclick:'双击', |
|
388 | 389 | imgWindowEscKey:"Esc鍵關閉", |
389 | 390 | imgWindowDblClickImgWindow:"雙擊圖片窗口關閉", |
390 | 391 | imgWindowClickOutside:"點擊圖片外部關閉", |
| 392 | + imgWindowClickOutsideTip:"僅當覆蓋層顯示時生效", |
391 | 393 | none:'無', |
392 | 394 | click:'單擊', |
393 | 395 | dblclick:'雙擊', |
|
571 | 573 | imgWindowEscKey:"Esc key is off", |
572 | 574 | imgWindowDblClickImgWindow:"Double click on the image window to close", |
573 | 575 | imgWindowClickOutside:"Click on the image to close externally", |
| 576 | + imgWindowClickOutsideTip:"Only enable when Overlayer is shown", |
574 | 577 | none:"None", |
575 | 578 | click:"Click", |
576 | 579 | dblclick:"Double click", |
@@ -6324,7 +6327,7 @@ left: -45px;\ |
6324 | 6327 | }; |
6325 | 6328 |
|
6326 | 6329 | //是否点击图片外部关闭 |
6327 | | - if(prefs.imgWindow.close.clickOutside){ |
| 6330 | + if(prefs.imgWindow.overlayer.shown && prefs.imgWindow.close.clickOutside){ |
6328 | 6331 | var clickOutside=function(e){ |
6329 | 6332 | var target=e.target; |
6330 | 6333 | if(!container.contains(target)){ |
@@ -7691,11 +7694,6 @@ left: -45px;\ |
7691 | 7694 |
|
7692 | 7695 | this.imgWindow.parentNode.removeChild(this.imgWindow); |
7693 | 7696 |
|
7694 | | - //点击点击外部关闭的监听 |
7695 | | - if(prefs.imgWindow.close.clickOutside.enabled){ |
7696 | | - document.removeEventListener(prefs.imgWindow.close.clickOutside,this.clickOutside,true); |
7697 | | - }; |
7698 | | - |
7699 | 7697 | var index=ImgWindowC.all.indexOf(this); |
7700 | 7698 | ImgWindowC.all.splice(index,1); |
7701 | 7699 |
|
@@ -9507,6 +9505,7 @@ left: -45px;\ |
9507 | 9505 | 'dblclick': i18n("dblclick"), |
9508 | 9506 | }, |
9509 | 9507 | "default": prefs.imgWindow.close.clickOutside, |
| 9508 | + title: i18n("imgWindowClickOutsideTip"), |
9510 | 9509 | line: 'end', |
9511 | 9510 | }, |
9512 | 9511 | 'imgWindow.overlayer.shown': { |
|
0 commit comments