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

with_accept_first_mouse takes behavior of first initalized window #751

Closed
grant0417 opened this issue Nov 11, 2022 · 0 comments · Fixed by #753
Closed

with_accept_first_mouse takes behavior of first initalized window #751

grant0417 opened this issue Nov 11, 2022 · 0 comments · Fixed by #753

Comments

@grant0417
Copy link

grant0417 commented Nov 11, 2022

The behavior of with_accept_first_mouse should apply per webview but it actually a global value due to how it is defined in code, the class is only initialized once when the first webview is created so any subsequent windows created also inherit the value.

https://github.com/tauri-apps/wry/blob/c7cd108c2e764457105920d191cf82e890d465d1/src/webview/wkwebview/mod.rs#LL267C8-L267C8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants