javascript - Select2 - jScrollPane jquery plugin vertical scrollbar bug -


i using select2 plugin on select dropdowns. on top of using jscrollpane plugin in order have custom scrollbar select2 drop down list elements.

the combination works except 1 specific problem.

when clicking on scrollbar handler once, somehow scrollbar hadler bound mouse mouvements , scrollbar moves according it, althoug not clicking scrollbar anymore.

how can prevent happening?

$(document).on("select2-open", "select", function () {     $('.select2-results').jscrollpane({          'mousewheelspeed': 40     }); }); 

here example.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -

What is happening when Matlab is starting a "parallel pool"? -