Skip to content

Commit

Permalink
Update ngDraggable.js
Browse files Browse the repository at this point in the history
removed check for ng-click in clickableElement function. Only ng-cancel-drag will prevent the start of drag.
  • Loading branch information
fatlinesofcode committed Apr 17, 2015
1 parent 768cd51 commit 29f494c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ngDraggable.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ angular.module("ngDraggable", [])

var isClickableElement = function (evt) {
return (
angular.isDefined(angular.element(evt.target).attr("ng-click"))
|| angular.isDefined(angular.element(evt.target).attr("ng-dblclick"))
|| angular.isDefined(angular.element(evt.target).attr("ng-cancel-drag"))
angular.isDefined(angular.element(evt.target).attr("ng-cancel-drag"))
);
};
/*
Expand Down

0 comments on commit 29f494c

Please sign in to comment.