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