feat: 'will-move' event for windows. (#14283)

* feat: 'will-resize' window event (Windows only)

* documentation for 'will-move' event

* comment and line break fix in docs
This commit is contained in:
Siddharth Dalal 2018-08-28 09:44:10 -04:00 committed by Charles Kerr
parent f1fe485768
commit afdb6c5f90
7 changed files with 37 additions and 1 deletions

View file

@ -505,6 +505,17 @@ 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_
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.
Note that this is only emitted when the window is being resized manually. Resizing the window with `setBounds`/`setSize` will not emit this event.
#### Event: 'move'
Emitted when the window is being moved to a new position.