File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 181
181
this . _findBackgrounds ( ) ;
182
182
183
183
// Fix for Chrome background rendering bug
184
- setTimeout ( function ( ) {
185
- var oldLeft = self . _getScrollLeft ( ) ,
186
- oldTop = self . _getScrollTop ( ) ;
184
+ if ( navigator . userAgent . indexOf ( 'Chrome' ) > 0 ) {
185
+ $ ( window ) . load ( function ( ) {
186
+ var oldLeft = self . _getScrollLeft ( ) ,
187
+ oldTop = self . _getScrollTop ( ) ;
187
188
188
- self . _setScrollLeft ( oldLeft + 1 ) ;
189
- self . _setScrollTop ( oldTop + 1 ) ;
189
+ self . _setScrollLeft ( oldLeft + 1 ) ;
190
+ self . _setScrollTop ( oldTop + 1 ) ;
190
191
191
- self . _setScrollLeft ( oldLeft ) ;
192
- self . _setScrollTop ( oldTop ) ;
193
- } , 5 ) ;
192
+ self . _setScrollLeft ( oldLeft ) ;
193
+ self . _setScrollTop ( oldTop ) ;
194
+ } ) ;
195
+ }
194
196
} ,
195
197
_findParticles : function ( ) {
196
198
var self = this ,
You can’t perform that action at this time.
0 commit comments