[longomatch] Take Scroll in account for seeking from the timeline



commit ad24efdba3fb4f0543326c2b7bbecb03153519b1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Wed Oct 22 20:36:47 2014 +0200

    Take Scroll in account for seeking from the timeline

 LongoMatch.Drawing/Widgets/Timerule.cs |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Drawing/Widgets/Timerule.cs b/LongoMatch.Drawing/Widgets/Timerule.cs
index a6b891c..21e0de8 100644
--- a/LongoMatch.Drawing/Widgets/Timerule.cs
+++ b/LongoMatch.Drawing/Widgets/Timerule.cs
@@ -95,9 +95,8 @@ namespace LongoMatch.Drawing.Widgets
 
                protected override void SelectionMoved (Selection sel)
                {
-                       Config.EventsBroker.EmitSeekEvent (Utils.PosToTime (new Point (needle.X, 0),
+                       Config.EventsBroker.EmitSeekEvent (Utils.PosToTime (new Point (needle.X + Scroll , 0),
                                                                            SecondsPerPixel), false);
-                                                                           Console.WriteLine ("Moved to " + 
needle.X);
                }
 
                public override void Draw (IContext context, Area area)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]