Skip to content

Commit

Permalink
fixed #11
Browse files Browse the repository at this point in the history
Disabled text selection while dragging the scrollbar
  • Loading branch information
Mr_Green committed Sep 5, 2015
1 parent 8964767 commit 5b5bda1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/slimscroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ var slimScroll = function(C, payload){
i[oT] = getTop(i[w]);
i.firstY = e.pageY || event.clientY;
if(!i.reposition) i.reposition = getReposition(i[s], i.h);
// Disable text selection while dragging the scrollbar
return false;
},
getReposition = function(i, h){
var x = parseInt(i.style.top.replace(U,""),10) * h/100;
Expand Down

0 comments on commit 5b5bda1

Please sign in to comment.