We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Drag outside of browser window in Firefox
ng2-dragula
Describe the bug (required)
Drag is not canceled when user tries to drag content outside of browser and release mouse. Only happens in Firefox browser.
To Reproduce (required)
Steps to reproduce the behavior:
Versions (required)
Please state which versions of the following packages you have installed:
@angular/core
Browsers affected (optional)
Firefox only
The text was updated successfully, but these errors were encountered:
This is what I added after creating dragula group to fix this issue.
if (Utils.getBrowserInfo().firefox) { fromEvent(document, "mouseup").pipe(untilDestroyed(this)).subscribe((event: any) => { if ( event.clientX < 0 || event.clientY < 0 || event.clientX > window.innerWidth || event.clientY > window.innerHeight) { const cancelDrag = (group: Group) => { if (group.drake.dragging) { group.drake.cancel(); } }; cancelDrag(group); } }); }
So this ng2-dragula package should include above fix for Firefox
Sorry, something went wrong.
No branches or pull requests
Drag outside of browser window in Firefox
ng2-dragula
issues for related problems, including closed issues.ng2-dragula
.Describe the bug (required)
Drag is not canceled when user tries to drag content outside of browser and release mouse.
Only happens in Firefox browser.
To Reproduce (required)
Steps to reproduce the behavior:
Versions (required)
Please state which versions of the following packages you have installed:
@angular/core
: [e.g. 6.0.4]ng2-dragula
: [e.g. 2.0.0]Browsers affected (optional)
Firefox only
The text was updated successfully, but these errors were encountered: