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

Enable support for mobile-drag-drop polyfill #781

Merged
merged 2 commits into from
Feb 13, 2020
Merged

Enable support for mobile-drag-drop polyfill #781

merged 2 commits into from
Feb 13, 2020

Conversation

KeithGillette
Copy link
Contributor

The recommended DragDropTouch polyfill for mobile browsers has the limitation of disabling scrolling over draggable elements on mobile devices which also prevents dragging to drop zones beyond the visible scrolling viewport.

The mobile-drag-drop polyfill does not suffer from those limitations and offers additional configurable behavior. However, mobile-drag-drop does not detect Angular Tree Component drop zones because at present the dragenter event listener added by TreeDropDirective does not call $event.preventDefault() as required by mobile-drag-drop.

This PR merely calls $event.preventDefault() in TreeDropDirective.onDragEnter to allow use of mobile-drag-drop as well as DragDropTouch with Angular Tree Component.

Keith Gillette and others added 2 commits January 16, 2020 14:31
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

Successfully merging this pull request may close these issues.

None yet

2 participants