Don't hide header when moused over player controls

This commit is contained in:
DC
2016-09-23 02:38:39 -07:00
parent 5155fca0e4
commit 789bd0ce82
7 changed files with 36 additions and 19 deletions

View File

@@ -44,6 +44,16 @@ module.exports = class MediaController {
this.state.playing.mouseStationarySince = new Date().getTime()
}
controlsMouseEnter () {
this.state.playing.mouseInControls = true
this.state.playing.mouseStationarySince = new Date().getTime()
}
controlsMouseLeave () {
this.state.playing.mouseInControls = false
this.state.playing.mouseStationarySince = new Date().getTime()
}
openExternalPlayer () {
const state = this.state
const mediaURL = Playlist.getCurrentLocalURL(this.state)