Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a small bug #101

Open
Jackie-5 opened this issue Aug 25, 2016 · 1 comment
Open

Find a small bug #101

Jackie-5 opened this issue Aug 25, 2016 · 1 comment

Comments

@Jackie-5
Copy link

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.

@hold-baby
Copy link

hold-baby commented Apr 21, 2017

在源码中找到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); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants