File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 9393 // used in event handlers and for better minification
9494 var me = $ ( this ) ;
9595
96+ // create a simple function to check if panel is being hovered over.
97+ isOverPanel = function ( ) {
98+ return me . is ( ":hover" ) ;
99+ }
100+
96101 // ensure we are not binding it again
97102 if ( me . parent ( ) . hasClass ( o . wrapperClass ) )
98103 {
256261
257262 // show on parent mouseover
258263 me . hover ( function ( ) {
259- isOverPanel = true ;
260264 showBar ( ) ;
261265 hideBar ( ) ;
262266 } , function ( ) {
263- isOverPanel = false ;
264267 hideBar ( ) ;
265268 } ) ;
266269
314317 function _onWheel ( e )
315318 {
316319 // use mouse wheel only when mouse is over
317- if ( ! isOverPanel ) { return ; }
320+ if ( ! isOverPanel ( ) ) { return ; }
318321
319322 var e = e || window . event ;
320323
447450 if ( ! o . alwaysVisible )
448451 {
449452 queueHide = setTimeout ( function ( ) {
450- if ( ! ( o . disableFadeOut && isOverPanel ) && ! isOverBar && ! isDragg )
453+ if ( ! ( o . disableFadeOut && isOverPanel ( ) ) && ! isOverBar && ! isDragg )
451454 {
452455 bar . fadeOut ( 'slow' ) ;
453456 rail . fadeOut ( 'slow' ) ;
You can’t perform that action at this time.
0 commit comments