-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[feat] [macOS] Configure acceptsFirstMouse
for specific elements
#4316
Comments
I have this problem too,And Gaussian blur doesn't work when you lose focus |
I ran into this too. I thought it might have something to do with the acceptsFirstMouse method. It looks like at least tao is overriding that to be
It looks like wry already has a WryWebView that subclasses WKWebView and that might be a good place to put this override. It would be overzealous though, and then filtering of mouse clicks would need to happen somewhere or we'd end up in the reverse situation where the window shouldn't respond to the first mouse click in a lot of situations. I guess ideally it would be up to the application whether it accepts those clicks, but I'm not sure where that would go. |
Enabling If we're able to detect the first mouse click position, we would be able to forward it to the frontend to decide if the window should be dragged |
If it were special-cased for only
I think a system like that would still let the developer do their custom |
I think the solution there is to have |
data-tauri-drag-region
requires focus on macOSacceptsFirstMouse
/upstream tauri-apps/tao |
Upstream issue at tauri-apps/tao#575 has been closed. |
/upstream tauri-apps/wry |
Upstream issue at tauri-apps/wry#714 has been closed. |
acceptsFirstMouse
data-tauri-drag-region
when unfocused
data-tauri-drag-region
when unfocusedacceptsFirstMouse
for specific elements
Opened #5347 for exposing |
/upstream tauri-apps/wry |
Describe the bug
Elements with
data-tauri-drag-region
can't be dragged while the window isn't in focus, which is not how native windows (or Electron's implementation) worksNote:
acceptsFirstMouse
doesn't entirely solve this because that would also make everything in the window clickableReproduction
No response
Expected behavior
No response
Platform and versions
Stack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: