Skip to content

Commit

Permalink
Do not start dragging on right click
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed Apr 19, 2015
1 parent 446535d commit 76c2173
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ngDraggable.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ angular.module("ngDraggable", [])
return;
}

if (evt.type == "mousedown" && evt.button != 0) {
// Do not start dragging on right-click
return;
}

if(_hasTouch){
cancelPress();
_pressTimer = setTimeout(function(){
Expand Down

0 comments on commit 76c2173

Please sign in to comment.