-
Notifications
You must be signed in to change notification settings - Fork 10k
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
Blazor Server .NET 6 Drag n Drop mobile devices #41394
Comments
@Falco94 thanks for contacting us. Based on the call stack, I believe this likely comes from the third-party drag-n-drop library which we don't have any control of. I would check with the library authors for suggestions first. |
Addition: The issue comes with the commit 6969db9 inside blazor.server.js where function "u" was changed to function "h"
blazor.server.js old, working:
blazor.server.js new, not working:
Is there maybe any quick workaround to solve this issue? (Except using a local edited version of blazor.server.js) For this specific mobile drag and drop implementation the error is Is there any other way to implement drag and drop for mobile devices in blazor server? Am I doing a extraordinary way implementing it or why noone else has this issue :D If its still the wrong place to report this issue, just close it please. Thank you in advance! |
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes. See our Issue Management Policies for more information. |
Same issue, but did not have a proper way to debug this. Based on your call stack, I added the following lines in DragDropTouch.js: In
This fixed the issue. |
Working for me. Great job @tomes92 ! |
Since .NET 6 the drag n drop behaviour using a polyfill library for mobile devices seems to be broken on Blazor Server.
I do not know, if this is a blazor.server.js issue or a problem with the polyfill library.
Start dragging an element on a mobile device gives these errors.
I added a sample project from https://github.com/Postlagerkarte/blazor-dragdrop to reproduce this.
blazor-dragdrop-master.zip
Downgrading this project to .NET 5 restores functionality.
The text was updated successfully, but these errors were encountered: