Is there a way to detect mouse events such as hover and click even when the Electron window is not the active focus? I want to ensure that my buttons' hover and click effects still function properly.
Currently, I find that I have to switch back to the Electron window by clicking or using alt-tab in order for the mouse events to be recognized.
As someone new to JavaScript and Electron, I haven't been able to locate any information on this specific issue. However, considering it works in the Atom editor, I assume there must be a solution available?
Do I need an additional module similar to what was mentioned in this post about capturing keyboard events: Atom Electron capture all keyboard events even when app is unfocused?
Thank you in advance for any assistance provided!