diff --git a/renderer/index.js b/renderer/index.js index 77677080..7765610b 100644 --- a/renderer/index.js +++ b/renderer/index.js @@ -208,7 +208,7 @@ function dispatch (action, ...args) { if (action === 'toggleFullScreen') { electron.ipcRenderer.send('toggleFullScreen') } - if (action === 'fullscreenVideoMouseMoved') { + if (action === 'videoMouseMoved') { state.video.mouseStationarySince = new Date().getTime() } } diff --git a/renderer/views/player.js b/renderer/views/player.js index 8e8191c6..93bbff78 100644 --- a/renderer/views/player.js +++ b/renderer/views/player.js @@ -24,14 +24,17 @@ function Player (state, dispatch) { } // When in fullscreen, hide player controls if the mouse stays still for a while - var hideControls = state.isFullScreen && - state.video.mouseStationarySince !== 0 && + var hideControls = state.video.mouseStationarySince !== 0 && new Date().getTime() - state.video.mouseStationarySince > 2000 // Show the video as large as will fit in the window, play immediately return hx` -