hide header on video after mouse idle
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user