[pitivi] timeline: Only consider a single clicks on keyframe curve



commit b7f7b76ae992bbd2fc80f813030a8dad6dfcb1ed
Author: Fabián Orccón <cfoch fabian gmail com>
Date:   Sat Jun 26 20:42:22 2021 +0200

    timeline: Only consider a single clicks on keyframe curve
    
    Avoid executing logic meant to be executed only for single-click events.
    
    Fixes #2566

 pitivi/timeline/elements.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index 350ad5b4a..ad0c8076a 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -321,6 +321,9 @@ class KeyframeCurve(FigureCanvasGTK3Cairo, Loggable):
                 self.handling_motion = True
             return
 
+        if event.guiEvent.type != Gdk.EventType.BUTTON_PRESS:
+            return
+
         result = self.__line.contains(event)
         if result[0]:
             # The line has been clicked.


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