ngDraggable icon indicating copy to clipboard operation
ngDraggable copied to clipboard

$event.stopPropagation(); and ng-prevent-drag

Open CrackerakiUA opened this issue 9 years ago • 1 comments

I know that you have awesome attribute ng-prevent-drag. But i need to use $event.stopPropagation(); because i have other functionalities under ng-drag area and i want to prevent those in some other area. How can i do that without having Uncaught TypeError: Cannot read property 'preventDefault' of undefined.

CrackerakiUA avatar Sep 13 '15 21:09 CrackerakiUA

For anyone else who gets here, when you pass $event , it appears you need to go one step deeper sometimes.

event = event.event ? event.event : event;
event.stopPropagation();

df-jsykes avatar Mar 03 '16 21:03 df-jsykes