Open schuma7 opened 8 years ago
I had the same problem but your fix works like a charm
@schuma7 is noOp just an empty custom function you define?
@vTrip Yes, that's right it's just an empty function which I added.
Thanks for the fix. But defining a new noOp
is not necessary. ng-sortable
already uses angular.noop
in some places. So it can be used in this fix too.
element.bind('touchmove', angular.noop);
@alinnert impressive feature of Angular. Such power... I am switching from React right now
After updating to iOS 10 I noticed that the page doesn't stop scrolling anymore when dragging the element.
I then tried to to enable the longTouch option which caused the page to stop scrolling as expected. After some digging I found out that attaching a no operation event handler to the touchmove event of the element inside of the bindDrag function solved the issue.
The fixed function looks as follows:
I currently do not completely understand why this fixes it. Does someone have a cleaner fix, if not I could issue a pull request with my current solution?