-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
Webview frozen until mouse moves on Windows #616
Comments
I found that it won't happen if control flow is poll, and Device Motion Events seem sending like crazy. Edit: I can confirm it begins from this commit e056fb2 |
Okay, I got some new findings. I tried more approaches like creating the minimum webview, use What's interested is if I don't call any Windows API in I'll try to see if I can recreate it in |
Is this the ControlFlow::Poll in "event_loop.rs" (found in the .cargo\registry\src\githubsomenumber\tao-0.11.2\src\platform_impl\windows folder)? I poked around with it for a bit, but am unable to even hack this file to bits such that it causes a panic, or build failure, or gives any response showing that my changes are propagating to a build. Is there some step prior to or in addition to doing "cargo tauri build" that I should do to make sure whatever I change in the dependency source code reflects in a build? I have literally all summer to figure it out :D |
@McZazz Thanks for willing to help! |
We have lighter PR in tauri-apps/tao#465 |
Tried tauri-apps/tao#465 but it does not seem to fix this issue |
@AmionSky Did you try with |
@wusyong I have not. Sorry. With the filter set it fixes this |
This comment was marked as off-topic.
This comment was marked as off-topic.
I've been experiencing this in Tauri for a while. It's a little difficult to understand how |
@rgwood In theory you can tell Cargo to use only wry from git, but iirc wry and tauri changed a bit too much compared to 1.0.5 so you probably need to use tauri from git instead, see https://tauri.app/v1/guides/faq#how-can-i-use-unpublished-tauri-changes |
this now has landed in tauri, do you still face the same issue? |
Looks like it's fixed. No longer have the issue in wry or tauri. |
Describe the bug
On windows (webview2) after clicks sometimes noting happens until the mouse moves or until ~2 second passes.
The bug was discussed before at tauri-apps/tauri#3691
Steps To Reproduce
cargo run --example hello_world
Open and close the hamburger menu by clicking on it and don't move the mouse
Sometimes it won't open instantly but a second later
Expected behavior
Menu opens/closes instantly always
Platform and Versions (please complete the following information):
OS: Windows 11 Pro 22000.739
Rustc: 1.61.0 (fe5b13d68 2022-05-18)
Would you assign yourself to resolve this bug?
Additional context
Last working commit: 3a6eefa
First commit with the bug: 219d20c
Since that commit is a merge and the commits inside of it are tricky to build I'm not certain of this but the possible culprit:
#414 (e056fb2)
From my testing the webview2-rs example does not have this issue
The text was updated successfully, but these errors were encountered: