[pitivi] overlay: Hide overlays at current position when clips change position.



commit b5a06c6edf41d2d4d241638286c2e6fb6b372338
Author: Fabian Orccon <fabian orccon pucp pe>
Date:   Tue Mar 29 12:32:15 2016 +0000

    overlay: Hide overlays at current position when clips change position.
    
    Differential Revision: https://phabricator.freedesktop.org/D842

 pitivi/timeline/timeline.py         |    1 +
 pitivi/viewer/move_scale_overlay.py |    2 ++
 2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index c2f005e..2dea32f 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -666,6 +666,7 @@ class Timeline(Gtk.EventBox, Zoomable, Loggable):
             self._seek(event)
 
         self._snapEndedCb()
+        self.update_visible_overlays(self.__last_position)
 
         return False
 
diff --git a/pitivi/viewer/move_scale_overlay.py b/pitivi/viewer/move_scale_overlay.py
index 54ea1b4..b368656 100644
--- a/pitivi/viewer/move_scale_overlay.py
+++ b/pitivi/viewer/move_scale_overlay.py
@@ -463,6 +463,8 @@ class MoveScaleOverlay(Overlay):
         self._commit()
 
     def on_hover(self, cursor_pos):
+        if not self.is_visible():
+            return
         # handles hover check
         self.hovered_handle = None
         if self._is_selected():


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