@@ -20,27 +20,31 @@ var PreRender = function ()
2020 if ( this . useBounds )
2121 {
2222 var bounds = this . _bounds ;
23- var boundsX = bounds . x ;
24- var boundsY = bounds . y ;
25- var boundsR = Math . max ( bounds . right - width , width ) ;
26- var boundsB = Math . max ( bounds . bottom - height , height ) ;
2723
28- if ( this . scrollX < boundsX )
24+ // width = bounds.width;
25+ // height = bounds.height;
26+
27+ // var boundsX = bounds.x;
28+ // var boundsY = bounds.y;
29+ // var boundsR = Math.max(bounds.right - width, width);
30+ // var boundsB = Math.max(bounds.bottom - height, height);
31+
32+ if ( this . scrollX < bounds . x )
2933 {
30- this . scrollX = boundsX ;
34+ this . scrollX = bounds . x ;
3135 }
32- else if ( this . scrollX > boundsR )
36+ else if ( this . scrollX > bounds . right )
3337 {
34- this . scrollX = boundsR ;
38+ this . scrollX = bounds . right ;
3539 }
3640
37- if ( this . scrollY < boundsY )
41+ if ( this . scrollY < bounds . y )
3842 {
39- this . scrollY = boundsY ;
43+ this . scrollY = bounds . y ;
4044 }
41- else if ( this . scrollY > boundsB )
45+ else if ( this . scrollY > bounds . bottom )
4246 {
43- this . scrollY = boundsB ;
47+ this . scrollY = bounds . bottom ;
4448 }
4549 }
4650
0 commit comments