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

[Maui Blazor] App becomes unresponsive when dragging and dropping text outside the window. #7390

Closed
Abooow opened this issue May 21, 2022 · 4 comments
Assignees
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/windows 🪟 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@Abooow
Copy link

Abooow commented May 21, 2022

Description

When selecting any text (can be links or images as well) in a .NET MAUI Blazor project (RC3) and then drag and drop it outside the app window, the app enters a weird state and becomes unresponsive. No click event works on links or buttons in this state. Not even the minimize, maximize or close buttons work.
Only when trying to move the window then, instead of actually moving the window, a file icon appears. When releasing the mouse button then all the previous click events will fire off at the same time and the app works as expected again.

Here is a video that demonstrates what happens:

DragAndDropTextOutsideWindowBug.mp4

Steps to Reproduce

  1. Create a .NET MAUI Blazor project.
  2. Start the project.
  3. Select any text, link or image and drag and drop it outside the app window and observe the bug 🐛

Version with bug

Release Candidate 3 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10 10.0.19044, Windows 11 10.0.25115

Did you find any workaround?

Nope.

Relevant log output

No response

@Abooow Abooow added s/needs-verification Indicates that this issue needs initial verification before further triage will happen t/bug Something isn't working labels May 21, 2022
@kristinx0211 kristinx0211 added s/verified Verified / Reproducible Issue ready for Engineering Triage and removed s/needs-verification Indicates that this issue needs initial verification before further triage will happen labels May 23, 2022
@kristinx0211
Copy link

verified repro on windows with 17.3.0 Preview 2.0 [32522.62.main].

@Eilon Eilon added the area-blazor Blazor Hybrid / Desktop, BlazorWebView label May 23, 2022
@mkArtakMSFT
Copy link
Member

Potentially related to: #2205

@mkArtakMSFT mkArtakMSFT added this to the .NET 7 milestone May 23, 2022
@mkArtakMSFT mkArtakMSFT added the discussed Created by mkArtakMSFT to help with planning temporarily. It will be removed after planning is done. label Jun 29, 2022
@Eilon Eilon removed their assignment Jun 29, 2022
@mkArtakMSFT mkArtakMSFT removed the discussed Created by mkArtakMSFT to help with planning temporarily. It will be removed after planning is done. label Nov 2, 2022
@mkArtakMSFT mkArtakMSFT added the discussed Created by mkArtakMSFT to help with planning temporarily. It will be removed after planning is done. label Nov 2, 2022
@mkArtakMSFT mkArtakMSFT removed the discussed Created by mkArtakMSFT to help with planning temporarily. It will be removed after planning is done. label Nov 16, 2022
@Eilon
Copy link
Member

Eilon commented Dec 2, 2022

I found it a bit hard to repro this, but it does still repro in a .NET MAUI Blazor app on Windows. When I get it into this state, I sometimes can quickly see what appears to be a "not allowed to copy" icon that seems impossible to get a screenshot of. After clicking around a bit, the app becomes responsive again and behaves normally.

Then I tried to repro it in a default WinUI3 app where all I did was add a WebView2 pointing to an arbitrary site:

<WebView2 x:Name="wv2" Source="https://learn.microsoft.com"></WebView2>

And after much clicking around and trying to drag/drop text (which seems hard to do, sometimes), I did get it into a similar state with the "not allowed to copy" icon, which, after clicking a bit, goes back to normal.

I had to take a picture with my phone because for some bizarre reason Windows' screenshot feature doesn't capture that icon:

image

So, it seems there's an underlying issue with WebView2. I'll check if there is an existing issue or open a new one.

@Eilon
Copy link
Member

Eilon commented Dec 2, 2022

Alright I think this is effectively a duplicate issue of this WebView2 issue: MicrosoftEdge/WebView2Feedback#2805 (which I logged due to another earlier MAUI issue report). That issue uses https://www.w3schools.com/html/tryit.asp?filename=tryhtml5_draganddrop as the repro site and the exact same "app stops responding for a bit" issue happens there. So, anyone seeing this issue here, please go to the WebView2 issue and vote/comment on it. Thanks!

@Eilon Eilon closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jan 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/windows 🪟 s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants