hide header on video after mouse idle

This commit is contained in:
Nate Goldman
2016-03-05 20:33:00 -08:00
parent 569111d336
commit 7c1c430097
3 changed files with 34 additions and 5 deletions

View File

@@ -143,6 +143,8 @@ function dispatch (action, ...args) {
setDimensions(args[0] /* dimensions */)
}
if (action === 'back') {
// TODO
// window.history.back()
if (state.url === '/player') {
restoreBounds()
closeServer()
@@ -150,6 +152,10 @@ function dispatch (action, ...args) {
state.url = '/'
update()
}
if (action === 'forward') {
// TODO
// window.history.forward()
}
if (action === 'playPause') {
state.video.isPaused = !state.video.isPaused
update()