154 this.ligneProgress = this.paper.path("M0 0L0 "+this.height).attr({"stroke":"#ff00ff", "line-width" : 2}) |
154 this.ligneProgress = this.paper.path("M0 0L0 "+this.height).attr({"stroke":"#ff00ff", "line-width" : 2}) |
155 |
155 |
156 this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.timeUpdateHandler)); |
156 this._Popcorn.listen("timeupdate", IriSP.wrap(this, this.timeUpdateHandler)); |
157 var _this = this; |
157 var _this = this; |
158 this.selector |
158 this.selector |
159 .click(function(_e) { |
159 .click(IriSP.wrap(this, this.clickHandler)) |
160 _this.clickHandler(_e); |
160 .mousemove(function(event) { |
161 }) |
161 _this.updateTooltip(event); |
162 .mousemove(function(_e) { |
|
163 _this.updateTooltip(_e); |
|
164 |
162 |
165 // Also tell the world where the mouse is hovering. |
163 // Also tell the world where the mouse is hovering. |
166 var relX = event.pageX - this.selector.offset().left; |
164 var relX = event.pageX - _this.selector.offset().left; |
167 var duration = this._serializer.currentMedia().meta["dc:duration"]; |
165 var duration = _this._serializer.currentMedia().meta["dc:duration"]; |
168 var Time = ((relX / _this.width) * duration).toFixed(2); |
166 var Time = ((relX / _this.width) * duration).toFixed(2); |
169 _this._Popcorn.trigger("IriSP.StackGraphWidget.mouseOver", Time); |
167 _this._Popcorn.trigger("IriSP.StackGraphWidget.mouseOver", Time); |
170 |
168 |
171 }) |
169 }) |
172 .mouseout(function() { |
170 .mouseout(function() { |