Electron capture mouse events when window is not focused Electron capture mouse events when window is not focused vue.js vue.js

Electron capture mouse events when window is not focused


When creating a new Electron window using new BrowserWindow, it is possible to have mouse click events captured even when the window is not focused by adding:

acceptFirstMouse: true

to the BrowserWindow options.

As for capturing mouse hover events, I'm afraid this is not possible out of the box.