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:
parent
f1fe485768
commit
afdb6c5f90
7 changed files with 37 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue