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

Touchscreen not working after rapidly clicking while app startup #16251

Closed
Letiz0 opened this issue Jul 20, 2023 · 11 comments
Closed

Touchscreen not working after rapidly clicking while app startup #16251

Letiz0 opened this issue Jul 20, 2023 · 11 comments
Labels
area-blazor Blazor Hybrid / Desktop, BlazorWebView platform/windows 🪟 t/bug Something isn't working

Comments

@Letiz0
Copy link

Letiz0 commented Jul 20, 2023

Description

711540495645142_TbyLCh92.online-video-cutter.com.1.mp4

Just like the video shows, if I rapidly click anywhere inside the app while starting up and loading, the touchsrceen will be broken but the mouse is still working.

Steps to Reproduce

  1. Create a new Maui Blazor Project
  2. Deploy it on any tablet
  3. Repeatly touch the screen inside the app window as quickly as you can

Link to public reproduction project repository

https://github.com/Letiz0/MauiApp1

Version with bug

7.0.49

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

net7.0-windows10.0.19041.0

Did you find any workaround?

2023/08/01 update:
I found that if I force reload the page (e.g. NavigationManager.NavigateTo(NavigationManager.Uri, forceLoad: true)), it would be solved.

Relevant log output

No response

@Letiz0 Letiz0 added the t/bug Something isn't working label Jul 20, 2023
@trivalik
Copy link
Contributor

If the MAUI app could not be used, is the operating system still useable via touch?

@Letiz0
Copy link
Author

Letiz0 commented Jul 20, 2023

If the MAUI app could not be used, is the operating system still useable via touch?

I can even close the MAUI app by touching the top-right "X" icon, it seems touchscreen is only broken inside the app.

@jsuarezruiz jsuarezruiz added the area-blazor Blazor Hybrid / Desktop, BlazorWebView label Jul 20, 2023
@mkArtakMSFT mkArtakMSFT added this to the Backlog milestone Jul 20, 2023
@ghost
Copy link

ghost commented Jul 20, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

@Eilon
Copy link
Member

Eilon commented Aug 1, 2023

Hi @Letiz0 , I wonder if this is the same as MicrosoftEdge/WebView2Feedback#3003 (even though in your case it's touch actions instead of keyboard/mouse).

A fix for that bug is listed here: MicrosoftEdge/WebView2Feedback#3003 (comment)

So it's probably worth trying that to see if it resolves your issue.

@Letiz0
Copy link
Author

Letiz0 commented Aug 2, 2023

Hi @Letiz0 , I wonder if this is the same as MicrosoftEdge/WebView2Feedback#3003 (even though in your case it's touch actions instead of keyboard/mouse).

A fix for that bug is listed here: MicrosoftEdge/WebView2Feedback#3003 (comment)

So it's probably worth trying that to see if it resolves your issue.

I've tried the solution you mentioned last month, unfortunately it seemed not solving the problem.
Just like what you said it's about the touch screen instead of the mouse.

@Eilon
Copy link
Member

Eilon commented Aug 2, 2023

I've tried the solution you mentioned last month, unfortunately it seemed not solving the problem. Just like what you said it's about the touch screen instead of the mouse.

Alright thanks for trying it out. I guess we'll need to investigate further. I'd say there's a strong chance we'll end up redirecting this to the WindowsAppSDK (WinUI) or WebView2 team because it's unlikely there's any Blazor- or MAUI-specific issue here.

@Eilon
Copy link
Member

Eilon commented Aug 2, 2023

I've tried reproducing this on my Surface Book 3 with a touch screen and so far I am unsuccessful. I tried tapping the white part of the screen as much as possible while it loads but the app remains fully responsive to all input types. I'll keep trying.

@Eilon
Copy link
Member

Eilon commented Aug 2, 2023

Alright now I can repro it! I lowered the max CPU power settings to 25% and that seemed to slow everything down enough. I then launched the app, randomly tapped on it while it loaded, and then touch doesn't work at all in the app. Interestingly, both mouse and keyboard work fine.

@Letiz0
Copy link
Author

Letiz0 commented Aug 3, 2023

Alright now I can repro it! I lowered the max CPU power settings to 25% and that seemed to slow everything down enough. I then launched the app, randomly tapped on it while it loaded, and then touch doesn't work at all in the app. Interestingly, both mouse and keyboard work fine.

Thanks for your efforts, and yes, the worse hardware is, the more often problem happens. It also happens when navigation and loading data from EF Core, and that's what actually annoying me. The video just shows the easiest way to reproduce it.

I found that if I force reload the page when the problem happened (e.g. NavigationManager.NavigateTo(NavigationManager.Uri, forceLoad: true)), the touch-screen would be resumed and everything worked fine, so I guess it's all about WebView2.

@Eilon
Copy link
Member

Eilon commented Aug 3, 2023

I was able to repro something very similar in a pure WindowsAppSDK (WinUI) + WebView2 app:

  1. Create new WinUI default app in VS
  2. Replace the app's content with: <WebView2 Source="https://microsoft.com/" />
  3. Set your tablet PC's CPU to some extremely low speed, like this:
    image
  4. While launching the app w/ debugger from VS, tap the blank white app loading screen a lot
  5. Eventually the app "loads", but it remains entirely a blank screen
  6. Interestingly, the app did load the page because you can see it in the F12 dev tools!
    image

So, I'm not quite sure if it's exactly the same bug, but it's super similar.

@Eilon
Copy link
Member

Eilon commented Aug 3, 2023

This issue was moved to MicrosoftEdge/WebView2Feedback#3685

@dotnet dotnet locked and limited conversation to collaborators Aug 3, 2023
@Eilon Eilon removed this from the Backlog milestone Aug 3, 2023
@Eilon Eilon closed this as completed Aug 3, 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 🪟 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants