angular-sortable-view icon indicating copy to clipboard operation
angular-sortable-view copied to clipboard

Find a small bug

Open Jackie-5 opened this issue 8 years ago • 1 comments

If add a drag ng-click event So in some cases this event will not be triggered. I found a temporary one way is to put the preventDefault () method for stopPropagation () don't stop the default event, only need to ban the bubbling. image Like this will not stop dragging the click event. But I don't know this will not cause other bugs, hope the author can see, thank you.

Jackie-5 avatar Aug 25 '16 04:08 Jackie-5

在源码中找到function onMousemove(e) 修改成function onMousemove(e){ if (clickEvent.clientX === e.clientX && clickEvent.clientY === e.clientY) { e.stopPropagation(); return false; } touchFix(e); if(!moveExecuted){ $element.parent().prepend(clone); moveExecuted = true; } $controllers[1].$moveUpdate(opts, { x: e.clientX, y: e.clientY, offset: pointerOffset }, clone, $element, placeholder, $controllers[0].getPart(), $scope.$index); }

hold-baby avatar Apr 21 '17 08:04 hold-baby