-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autohide controls after mouseleave #149
Comments
I ended up re-writing this as the new source stuff meant after source change, the events weren't bound properly. Could you give the latest version a check? It should wait 2 seconds (I could make that timeout an option) before hiding the controls if you've not moved the mouse. When mouse is over the controls, they should never hide. Feel free to close if you think it's fixed now. |
Thanks for the fast response! With the dist/css it works like a charm! :) When I use the compiled SCSS the controls never hide though. Probably still a typo somewhere in the SCSS. |
I think I found it, on line 643 in the SCSS file I changed:
into:
(added "-enabled" to the first selector). Seems to compile and work now. EDIT: That whole block is nested within:
So it should be one level up, or exclude "&--fullscreen" and "&--fullscreen-active":
The next block for the Captions also has these duplicate references. |
You're right - it needed to be outside that block (which it is in the LESS, hence that working). All sorted 👍 |
Hi,
When I open a YouTube or Vimeo video in fullscreen, the controls hide as intended. When I move the mouse over the progress bar at the bottom, the controls slide up, but when I move the mouse back up, they don't hide again. I'm having this issue with the latest Chrome and Firefox on OSX.
After doing some console.logs, it seems that "mousemove" on the ".plyr" container isn't triggered when you move over the video itself. So "_showControls()" is never called unless you are actually moving over the controls. Therefor "isMouseOver" is always true when "_showControls()" is fired.
https://github.com/Selz/plyr/blob/master/src/js/plyr.js#L1755-L1768
It seems to be fixed when I change line 1783:
into
But I'm not entirely sure if this would impact other parts of the code.
The text was updated successfully, but these errors were encountered: