Skip to content

Commit

Permalink
makes scrollbar work with custom scrollbar plugin, fixes #308
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-stoeck committed Jun 12, 2013
1 parent e6f1e9d commit 8cc74e5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/jquery.ui.selectmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,12 @@ $.widget("ui.selectmenu", {
return true;
})
// this allows for using the scrollbar in an overflowed list
.bind( 'mousedown.selectmenu mouseup.selectmenu', function() { return false; });
.bind( 'mousedown.selectmenu mouseup.selectmenu', function(e) {
// supports custom scroll bar and other plugins which wrap the selectmenu content
if (e.target.hasAttribute('href') && e.target.hash==='#nogo') {
return false;
}
});

// needed when window is resized
$( window ).bind( "resize.selectmenu-" + this.ids[ 0 ], $.proxy( self.close, this ) );
Expand Down

0 comments on commit 8cc74e5

Please sign in to comment.