ahkohd / tauri-macos-spotlight-example

An example macOS Spotlight app built with Tauri
MIT License
132 stars 8 forks source link

Hover is not working on macOS (12.3). #14

Closed ruoxiaomo closed 8 months ago

ruoxiaomo commented 9 months ago

In macOS (12.3), hover works only under two conditions: first, when the window utilizes setFocus, and second, when a click event occurs in the hover area.

https://github.com/ahkohd/tauri-macos-spotlight-example/assets/44762964/eb262322-bbd2-4c2f-87b2-4afdfd003bd6

ruoxiaomo commented 9 months ago

I tried to search for some information but was unsuccessful.

image

https://stackoverflow.com/questions/5367463/mouse-hover-not-working-in-webview-in-nspanel-with-stylemask-of-nsnonactivatingp

ruoxiaomo commented 9 months ago

@ahkohd any chance we can fix this? 😄

ahkohd commented 9 months ago

@ahkohd, any chance we can fix this? 😄

On it. It's hard to test because I don't have a macOS with 12.3.

jia1e commented 8 months ago

@ahkohd any chance we can fix this? 😄

image

ruoxiaomo commented 8 months ago

@jia1e Thanks for your help on this issue! Really appreciate it!

ahkohd commented 8 months ago

Sorry, I'm late to the party. I want to add this solution to the example, so I'll reopen this issue until it's merged!

Thanks, @ruoxiaomo, for reporting this, and thanks, @jia1e, for finding a fix.

ruoxiaomo commented 8 months ago

Sorry, I'm late to the party. I want to add this solution to the example, so I'll reopen this issue until it's merged!

Thanks, @ruoxiaomo, for reporting this, and thanks, @jia1e, for finding a fix.

that's ok, Let's Perfect it together!

ahkohd commented 8 months ago

@ruoxiaomo , please can you help test this PR if it works on your older macOS? https://github.com/ahkohd/tauri-macos-spotlight-example/pull/15

ruoxiaomo commented 8 months ago

@ahkohd yeah, it work on my mac!

ahkohd commented 8 months ago

Nice, I have merged the #15.