[pitivi] Don't scroll to the playhead when the ruler is pressed, only change the position



commit 65e7061fa7d5df52353d8306115b3223a404ec89
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date:   Sun Apr 21 21:53:38 2013 +0200

    Don't scroll to the playhead when the ruler is pressed, only change the position

 pitivi/timeline/timeline.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 7a3dbb1..1d324e3 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -863,6 +863,8 @@ class Timeline(Gtk.VBox, Zoomable):
 
     def _scrollToPlayhead(self):
         #self.ruler._maybeUpdate()
+        if self.ruler.pressed:
+            return
         canvas_size = self.embed.get_allocation().width - CONTROL_WIDTH
         new_pos = self.timeline.playhead.props.x
         scroll_pos = self.hadj.get_value()


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