mirror of
https://github.com/videojs/video.js.git
synced 2025-07-17 01:42:41 +02:00
Working towards getting styles to work on controls
This commit is contained in:
7
src/controls.js
vendored
7
src/controls.js
vendored
@ -224,6 +224,7 @@ _V_.LoadingSpinner = _V_.Component.extend({
|
||||
_V_.ControlBar = _V_.Component.extend({
|
||||
|
||||
options: {
|
||||
loadEvent: "play",
|
||||
components: {
|
||||
"playToggle": {},
|
||||
"fullscreenToggle": {},
|
||||
@ -244,8 +245,6 @@ _V_.ControlBar = _V_.Component.extend({
|
||||
|
||||
player.addEvent("mouseover", this.proxy(this.reveal));
|
||||
player.addEvent("mouseout", this.proxy(this.conceal));
|
||||
|
||||
this.hide();
|
||||
},
|
||||
|
||||
createElement: function(){
|
||||
@ -462,6 +461,10 @@ _V_.Slider = _V_.Component.extend({
|
||||
|
||||
// Move the handle from the left based on the adjected progress
|
||||
handle.el.style.left = _V_.round(adjustedProgress * 100, 2) + "%";
|
||||
|
||||
handle.el.style.left = _V_.round(adjustedProgress * 100, 2) + "%";
|
||||
|
||||
_V_.log(boxWidth, handleWidth, getComputedStyle(handle.el).width)
|
||||
}
|
||||
|
||||
// Set the new bar width
|
||||
|
Reference in New Issue
Block a user