src/js/widgets/stackGraphWidget.js
branchpopcorn-port
changeset 676 499d9693d066
parent 675 82a5ebbedc83
parent 673 18318dd611c2
child 694 528626981afe
equal deleted inserted replaced
675:82a5ebbedc83 676:499d9693d066
   159         .click(function(_e) {
   159         .click(function(_e) {
   160             _this.clickHandler(_e);
   160             _this.clickHandler(_e);
   161         })
   161         })
   162         .mousemove(function(_e) {
   162         .mousemove(function(_e) {
   163             _this.updateTooltip(_e);
   163             _this.updateTooltip(_e);
       
   164             
       
   165             // Also tell the world where the mouse is hovering.
       
   166             var relX = event.pageX - this.selector.offset().left;
       
   167             var duration = this._serializer.currentMedia().meta["dc:duration"];
       
   168             var Time = ((relX / _this.width) * duration).toFixed(2);
       
   169             _this._Popcorn.trigger("IriSP.StackGraphWidget.mouseOver", Time);
       
   170 
   164         })
   171         })
   165         .mouseout(function() {
   172         .mouseout(function() {
   166             _this.TooltipWidget.hide();
   173             _this.TooltipWidget.hide();
   167             _this.rectangleFocus.attr({
   174             _this.rectangleFocus.attr({
   168                 "opacity" : 0,
   175                 "opacity" : 0,