[pitivi] Offset clicks on the timeline



commit 95e734e5443dae51d15ec69959d82d721cddfde2
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date:   Mon Apr 22 00:32:35 2013 +0200

    Offset clicks on the timeline

 pitivi/timeline/timeline.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index e89fd8a..f2c11da 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1022,7 +1022,7 @@ class Timeline(Gtk.VBox, Zoomable):
 
     def _clickedCb(self, stage, event):
         self.pressed = True
-        position = self.pixelToNs(event.x - CONTROL_WIDTH)
+        position = self.pixelToNs(event.x - CONTROL_WIDTH + self.timeline._scroll_point.x)
         self._seeker.seek(position)
         self.pressed = False
         actor = self.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE, event.x, event.y)


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