17 // with the positionMarker when the user is dragging it |
17 // with the positionMarker when the user is dragging it |
18 this.draggingOngoing = false; |
18 this.draggingOngoing = false; |
19 |
19 |
20 this.positionMarker.draggable({axis: "x", |
20 this.positionMarker.draggable({axis: "x", |
21 start: IriSP.wrap(this, this.positionMarkerDraggingStartedHandler), |
21 start: IriSP.wrap(this, this.positionMarkerDraggingStartedHandler), |
22 stop: IriSP.wrap(this, this.positionMarkerDraggedHandler)}); |
22 stop: IriSP.wrap(this, this.positionMarkerDraggedHandler), |
|
23 containment: "parent" |
|
24 }); |
23 |
25 |
24 this.sliderBackground.click(function(event) { self.clickHandler.call(self, event); }); |
26 this.sliderBackground.click(function(event) { self.clickHandler.call(self, event); }); |
25 |
27 |
26 this.selector.hover(IriSP.wrap(this, this.mouseOverHandler), IriSP.wrap(this, this.mouseOutHandler)); |
28 this.selector.hover(IriSP.wrap(this, this.mouseOverHandler), IriSP.wrap(this, this.mouseOutHandler)); |
27 this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.sliderUpdater)); |
29 this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.sliderUpdater)); |
28 }; |
30 }; |
29 |
31 |
30 /* updates the slider as time passes */ |
32 /* update the slider and the position marker as time passes */ |
31 IriSP.SliderWidget.prototype.sliderUpdater = function() { |
33 IriSP.SliderWidget.prototype.sliderUpdater = function() { |
32 if(this.draggingOngoing) |
34 if(this.draggingOngoing) |
33 return; |
35 return; |
34 |
36 |
35 var time = this._Popcorn.currentTime(); |
37 var time = this._Popcorn.currentTime(); |