ngDraggable
ngDraggable copied to clipboard
$event.stopPropagation(); and ng-prevent-drag
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
.
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();