-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Vertical slider #477
Vertical slider #477
Conversation
This also removes the fallback method that doesn't use the getBoundingClientRect because according to MDN[1] and PPK[2], it should be supported just about everywhere. [1] https://developer.mozilla.org/en-US/docs/DOM/element.getBoundingClientRect#Browser_compatibility [2] http://www.quirksmode.org/dom/w3c_cssom.html#documentview
This takes a 'vertical' option on the slider bar itself. If set, it will use the top and pageY values to calculate the slider positions.
That's a whole lot o' config. |
Nice. Would you mind writing some tests for vjs.findPosition? |
Good idea, I'll work on that tomorrow. |
Very nice. The new test needs to clean itself up, either by appending the div to the qunit fixture (which auto-empties) or by removing the div manually. Pulling in anyway, but would be good to do a follow up on that. |
Ah, right. I think we need to do that with another test that we wrote as well. |
….js until the known issue with phantomjs is fixed. fixes videojs#477
This also removes the fallback method that doesn't use the getBoundingClientRect because according to MDN and PPK, it should be supported just about everywhere.
This takes a 'vertical' option on the slider bar itself. If set, it will use the top and pageY values to calculate the slider positions.
For example, to make a vertical volume slider: