[pitivi/gtktimeline] timeline: Don't move clips between layers when the mouse is in between layers



commit 42371b366aa3a67a3c7f6eb080a329a686d63665
Author: Thibault Saunier <tsaunier gnome org>
Date:   Tue May 5 21:54:09 2015 +0200

    timeline: Don't move clips between layers when the mouse is in between layers
    
    When we are between layers, the user would expect the clip to not move
    at all

 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 ff6f94c..4bfb98b 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -826,6 +826,8 @@ class Timeline(Gtk.EventBox, timelineUtils.Zoomable, Loggable):
 
             if sep_rectangle.y <= rect.y <= sep_rectangle.y + sep_rectangle.height:
                 self.debug("Returning layer %s, separators: %s" % (layer, separators))
+                if bLayer:
+                    return bLayer, separators
                 return layer, separators
 
         self.debug("Returning very last layer")


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