src/widgets/Slider.js
branchnew-model
changeset 880 4c7b33bf2795
parent 875 43629caa77bc
child 881 f11b234497f7
equal deleted inserted replaced
876:03967b6ada7c 880:4c7b33bf2795
    48     this.maximized = false;
    48     this.maximized = false;
    49     this.timeoutId = false;
    49     this.timeoutId = false;
    50 };
    50 };
    51 
    51 
    52 IriSP.Widgets.Slider.prototype.onTimeupdate = function() {
    52 IriSP.Widgets.Slider.prototype.onTimeupdate = function() {
    53     this.$slider.slider("value",this.player.popcorn.currentTime());
    53     var _time = this.player.popcorn.currentTime();
       
    54     this.$slider.slider("value",_time);
       
    55     this.player.popcorn.trigger("IriSP.Arrow.updatePosition",{widget: this.type, time: 1000 * _time});
    54 }
    56 }
    55 
    57 
    56 IriSP.Widgets.Slider.prototype.onMouseover = function() {
    58 IriSP.Widgets.Slider.prototype.onMouseover = function() {
    57     if (this.timeoutId) {
    59     if (this.timeoutId) {
    58         window.clearTimeout(this.timeoutId);
    60         window.clearTimeout(this.timeoutId);