jimrhoskins / ngmodules.org

Angular Modules Website
http://ngmodules.org
81 stars 11 forks source link

Click on dragged object always triggering draggable event #70

Open decernosia opened 7 years ago

decernosia commented 7 years ago

I have a DIV tag that is both draggable and has an ng-click event ... I don't want the draggable:start event to fire if all I am doing is clicking.

Yet, it seems the draggable:start is always triggered.

I need to stop that. Any ideas?

I do have this in my code ... that's how I know it's being fired:

    $rootScope.$on('draggable:start', function (data, evt) {
            vm.isDragging = true;
    });