rochal / jQuery-slimScroll

small jQuery plugin that transforms any div into a scrollable area with a nice scrollbar. Demo and more:
http://rocha.la/jQuery-slimScroll
2.23k stars 928 forks source link

Changing Height of Slimscroll-Div and Mousemove FIX #281

Open Muhamann opened 7 years ago

Muhamann commented 7 years ago

I had the following problem: My menu on the left side is a Slimscroll-Div. When on a desktop the mouse is moved inside this menu and then a submenu is opened, which made the content bigger than the Div itself, the Scrollbar had to appear. But... it doesnt. The only "solution" was, to move the mouse outside the menu (the Slimscroll-Div) and inside again, so the hover() function of Slimscroll made the Scrollbar appear.

I fixed this, by adding:

me.mousemove(function( event ) { showBar(); });

after "me.hover(function(){" in line 262. It makes the Scrollbar appear directly after moving the mouse, if the height of the Slimscroll-Div has changed. In some cases this makes the (not working) option "alwaysVisible" obsolete.

llgoer commented 7 years ago

+1

rajasaur commented 7 years ago

Same issue, happens on windows chrome/firefox ,but not on OSX