[pitivi/ges] timeline: When autoscrolling, jump to 1/6th of the width, not 1/2



commit 6886c578e901caeb8a54e2d0d4fbfca0e02d4178
Author: Jean-FranÃois Fortin Tam <nekohayo gmail com>
Date:   Thu Apr 26 22:49:55 2012 -0400

    timeline: When autoscrolling, jump to 1/6th of the width, not 1/2
    
    Fixes bug #573885

 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 1143d0b..e3dcc5f 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1144,7 +1144,7 @@ class Timeline(gtk.Table, Loggable, Zoomable):
         new_pos = Zoomable.nsToPixel(self._position)
         scroll_pos = self.hadj.get_value()
         if (new_pos > scroll_pos + canvas_size) or (new_pos < scroll_pos):
-            self.scrollToPosition(min(new_pos - canvas_size / 2,
+            self.scrollToPosition(min(new_pos - canvas_size / 6,
                                       self.hadj.upper - canvas_size - 1))
         return False
 



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