dispatch a pause event before hiding window on darwin

This commit is contained in:
Dan Flettre
2016-03-08 22:40:51 -06:00
parent 085e238ecd
commit e686aa8d02
2 changed files with 7 additions and 1 deletions

View File

@@ -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()