ElectronTray.on('mouse-move') method
ElectronTray › on(‘mouse-move’)
Unofficial
Registers a listener that is invoked when the mouse moves in the tray icon.darwin and win32 only. Signature:
on(event: "mouse-move", listener: (event: ElectronKeyboardEvent, position: ElectronPoint) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| event | "mouse-move" | The event name. |
| listener | (event: ElectronKeyboardEvent, position: ElectronPoint) => void | The event handler receiving the event and the position of the event. |
Returns: this — This tray instance.