electron-overlay-window
electron-overlay-window copied to clipboard
Add forward mouse option on AttachOptions and use it
On BrowserWindow
the function setIgnoreMouseEvents
(Documentation) have an option call forward
.
If this option is set to true, mouse movements are transmitted to chromium.
so with this option, if the overlay is not focused, it still receives mouse movements. This allows the JS in the overlay to capture mouse movements and actions.