Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions jquery.slimscroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,6 @@
// used in event handlers and for better minification
var me = $(this);

// create a simple function to check if panel is being hovered over.
isOverPanel = function () {
return me.is(":hover");
}

// ensure we are not binding it again
if (me.parent().hasClass(o.wrapperClass))
{
Expand Down Expand Up @@ -261,9 +256,11 @@

// show on parent mouseover
me.hover(function(){
isOverPanel = true;
showBar();
hideBar();
}, function(){
isOverPanel = false;
hideBar();
});

Expand Down Expand Up @@ -317,7 +314,7 @@
function _onWheel(e)
{
// use mouse wheel only when mouse is over
if (!isOverPanel()) { return; }
if (!isOverPanel) { return; }

var e = e || window.event;

Expand Down Expand Up @@ -450,7 +447,7 @@
if (!o.alwaysVisible)
{
queueHide = setTimeout(function(){
if (!(o.disableFadeOut && isOverPanel()) && !isOverBar && !isDragg)
if (!(o.disableFadeOut && isOverPanel) && !isOverBar && !isDragg)
{
bar.fadeOut('slow');
rail.fadeOut('slow');
Expand Down