File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8370,12 +8370,12 @@ left: -45px;\
83708370 if ( src ) type = 'scale' ;
83718371 } ;
83728372
8373+ var imgAS = { //实际尺寸。
8374+ h :img . naturalHeight ,
8375+ w :img . naturalWidth ,
8376+ } ;
83738377 if ( ! src || src == imgSrc ) { //本图片是否被缩放.
83748378 noActual = true ;
8375- var imgAS = { //实际尺寸。
8376- h :img . naturalHeight ,
8377- w :img . naturalWidth ,
8378- } ;
83798379
83808380 var imgCStyle = unsafeWindow . getComputedStyle ( img ) ;
83818381 var imgCS = {
@@ -8393,12 +8393,12 @@ left: -45px;\
83938393 type = 'force' ;
83948394 }
83958395 }
8396- if ( imgAS . h < prefs . gallery . scaleSmallSize && imgAS . w < prefs . gallery . scaleSmallSize ) {
8397- type = 'scaleSmall' ;
8398- }
83998396 } ;
84008397
84018398 if ( ! src ) return ;
8399+ if ( imgAS . h < prefs . gallery . scaleSmallSize && imgAS . w < prefs . gallery . scaleSmallSize ) {
8400+ type = 'scaleSmall' ;
8401+ }
84028402
84038403 var ret = {
84048404 src : decodeURIComponent ( src ) , // 得到的src
You can’t perform that action at this time.
0 commit comments