27 |
27 |
28 this.sliderBackground.click(function(event) { self.backgroundClickHandler.call(self, event); }); |
28 this.sliderBackground.click(function(event) { self.backgroundClickHandler.call(self, event); }); |
29 this.sliderForeground.click(function(event) { self.foregroundClickHandler.call(self, event); }); |
29 this.sliderForeground.click(function(event) { self.foregroundClickHandler.call(self, event); }); |
30 |
30 |
31 this.selector.hover(IriSP.wrap(this, this.mouseOverHandler), IriSP.wrap(this, this.mouseOutHandler)); |
31 this.selector.hover(IriSP.wrap(this, this.mouseOverHandler), IriSP.wrap(this, this.mouseOutHandler)); |
|
32 |
|
33 // update the positions |
32 this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.sliderUpdater)); |
34 this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.sliderUpdater)); |
|
35 |
|
36 // special messages : |
|
37 this._Popcorn.listen("IriSP.PlayerWidget.MouseOver", IriSP.wrap(this, this.mouseOverHandler)); |
|
38 this._Popcorn.listen("IriSP.PlayerWidget.MouseOut", IriSP.wrap(this, this.mouseOutHandler)); |
33 }; |
39 }; |
34 |
40 |
35 /* update the slider and the position marker as time passes */ |
41 /* update the slider and the position marker as time passes */ |
36 IriSP.SliderWidget.prototype.sliderUpdater = function() { |
42 IriSP.SliderWidget.prototype.sliderUpdater = function() { |
37 if(this.draggingOngoing) |
43 if(this.draggingOngoing) |