Skip to content

Commit

Permalink
Merge pull request #4 from OpherV/patch-1
Browse files Browse the repository at this point in the history
Prevent text selection when click-dragging
  • Loading branch information
asafdav committed Feb 25, 2014
2 parents 01bd7ef + edea3fa commit 7f66aa1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ng-scrollbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ angular.module('ngScrollbar', []).
event.stopPropagation();
});
win.bind('mousemove', dragHandler);
event.preventDefault();
});
} else {
scope.showYScrollbar = false;
Expand Down Expand Up @@ -170,4 +171,4 @@ angular.module('ngScrollbar', []).
'</div>' +
'</div>'
};
}]);
}]);

0 comments on commit 7f66aa1

Please sign in to comment.