feat: implement will-move event on macOS (#19641)

This commit is contained in:
Erick Zhao 2019-08-20 07:53:43 -07:00 committed by Shelley Vohr
parent cd1b15a155
commit 145b4fae94
2 changed files with 14 additions and 2 deletions

View file

@ -516,14 +516,14 @@ Note that this is only emitted when the window is being resized manually. Resizi
Emitted after the window has been resized.
#### Event: 'will-move' _Windows_
#### Event: 'will-move' _macOS_ _Windows_
Returns:
* `event` Event
* `newBounds` [`Rectangle`](structures/rectangle.md) - Location the window is being moved to.
Emitted before the window is moved. Calling `event.preventDefault()` will prevent the window from being moved.
Emitted before the window is moved. On Windows, calling `event.preventDefault()` will prevent the window from being moved.
Note that this is only emitted when the window is being resized manually. Resizing the window with `setBounds`/`setSize` will not emit this event.