diff --git a/src/css/video-js.less b/src/css/video-js.less index 9663396ebe..622d43dbf0 100644 --- a/src/css/video-js.less +++ b/src/css/video-js.less @@ -368,6 +368,8 @@ fonts to show/hide properly. height: 100%; margin: 0; padding: 0; + /* updated by javascript during playback */ + width: 0; /* Needed for IE6 */// left: 0; top: 0; diff --git a/src/js/slider.js b/src/js/slider.js index c58fbc4886..cc3654f84a 100644 --- a/src/js/slider.js +++ b/src/js/slider.js @@ -16,8 +16,6 @@ vjs.Slider = vjs.Component.extend({ this.bar = this.getChild(this.options_['barName']); this.handle = this.getChild(this.options_['handleName']); - player.on(this.playerEvent, vjs.bind(this, this.update)); - this.on('mousedown', this.onMouseDown); this.on('touchstart', this.onMouseDown); this.on('focus', this.onFocus); @@ -26,10 +24,7 @@ vjs.Slider = vjs.Component.extend({ this.player_.on('controlsvisible', vjs.bind(this, this.update)); - // This is actually to fix the volume handle position. http://twitter.com/#!/gerritvanaaken/status/159046254519787520 - // this.player_.one('timeupdate', vjs.bind(this, this.update)); - - player.ready(vjs.bind(this, this.update)); + player.on(this.playerEvent, vjs.bind(this, this.update)); this.boundEvents = {}; }