tauri-apps / tray-icon

Tray icons for Desktop Applications.
Apache License 2.0
183 stars 27 forks source link

feat: add `Enter`, `Mouse` and `Leave` events #161

Closed amrbashir closed 1 month ago

amrbashir commented 1 month ago

closes #123

amrbashir commented 1 month ago

@pewsheen as always, can you take care of macOS part? thanks

pewsheen commented 1 month ago

@pewsheen as always, can you take care of macOS part? thanks

The left and right mouse up event is quite unreliable on macOS. It will be ignored when the menu poped up.

amrbashir commented 1 month ago

thanks @pewsheen, LGTM

nongyehong commented 1 month ago

Ah, so how can I determine the position of my system icon, I think this hover mouse event can expand a lot of functions

amrbashir commented 1 month ago

you can call icon.rect() to get the position and size of the icon at any given time, also all the events include the position of the cursor when that event was triggered.

yume-chan commented 1 month ago

I wonder why double left click support was removed?