src/js/widgets/stackGraphWidget.js
branchpopcorn-port
changeset 676 499d9693d066
parent 675 82a5ebbedc83
parent 673 18318dd611c2
child 694 528626981afe
--- a/src/js/widgets/stackGraphWidget.js	Wed Jan 18 17:40:14 2012 +0100
+++ b/src/js/widgets/stackGraphWidget.js	Wed Jan 18 17:44:55 2012 +0100
@@ -161,6 +161,13 @@
         })
         .mousemove(function(_e) {
             _this.updateTooltip(_e);
+            
+            // Also tell the world where the mouse is hovering.
+            var relX = event.pageX - this.selector.offset().left;
+            var duration = this._serializer.currentMedia().meta["dc:duration"];
+            var Time = ((relX / _this.width) * duration).toFixed(2);
+            _this._Popcorn.trigger("IriSP.StackGraphWidget.mouseOver", Time);
+
         })
         .mouseout(function() {
             _this.TooltipWidget.hide();