-
Notifications
You must be signed in to change notification settings - Fork 15.2k
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
Quick successive clicks on tray do not fire clicked
event
#1825
Comments
clicked
event
You should turn off highlight mode, otherwise OS X would try to toggle between different states during your clicks. |
@zcbenz: Thanks, I will do that. Is this not a bug though? Native apps are able to highlight the icon and still respond to clicks. |
It is an expected behavior of OS X. |
Sorry for labouring the issue and thank you for replying but could you explain why it is expected behaviour? |
You can write a simple Cocoa app to reproduce this behavior, no one knows the reason of it except for the Apple devs. |
@zcbenz Thanks! Would it be possible to implement this by introducing a HighlightMode is necessary for a native feel on Mac, it would be very nice to have it. |
I have tried |
Your clicks might have been trapped as |
That was the issue, huge thanks! I'm now performing the show/hide action on Should the tray icon be trapping double-clicks if the app doesn't use them? Could Electron listen for new |
This behavior has been there for quite a long time, changing it would break existing apps. So no matter whether it is a good behavior or not, I think we should stick to it. |
I think the behaviour I have suggested should be backwards compatible with existing Electron apps though, I don't understand how it would break them if they're not listening for the |
I have only tested this on OS X. But I consistently see the same result. OS X 10.10.3, Electron 0.27.1.
Here's a quick video demonstrating the issue (~300KB).
The text was updated successfully, but these errors were encountered: