Hello,
I want to hide control bar only when the mouse move out of the player, i'm using this function :
player.on('mouseout', function(){ this.userActive(false) })
and
"inactivityTimeout": 0
It's working but when the mouse hover on slider, the control bar start to blink.
You probably want mouseleave instead of mouseout. They're very similar but mouseleave doesn't bubble, meaning that you don't get the event for children of the element getting the event where-as for mouseout you do.
Here's an example: https://jsfiddle.net/j6wdxp5j/2/
Hope that helps.
Thank you !
It's working perfect now.
Most helpful comment
You probably want
mouseleaveinstead ofmouseout. They're very similar butmouseleavedoesn't bubble, meaning that you don't get the event for children of the element getting the event where-as formouseoutyou do.Here's an example: https://jsfiddle.net/j6wdxp5j/2/
Hope that helps.