Merge pull request #107 from Flet/pause-on-hide
dispatch a pause event before hiding window on darwin
This commit is contained in:
@@ -187,6 +187,10 @@ function dispatch (action, ...args) {
|
||||
// TODO
|
||||
// window.history.forward()
|
||||
}
|
||||
if (action === 'pause') {
|
||||
state.video.isPaused = true
|
||||
update()
|
||||
}
|
||||
if (action === 'playPause') {
|
||||
state.video.isPaused = !state.video.isPaused
|
||||
update()
|
||||
|
||||
Reference in New Issue
Block a user