summaryrefslogtreecommitdiff
path: root/GstDebugViewer
diff options
context:
space:
mode:
authorRené Stadler <mail@renestadler.de>2012-09-24 22:58:58 +0200
committerRené Stadler <mail@renestadler.de>2012-09-24 22:58:58 +0200
commit56eec9e2507a5e4d951b6a82e8d6d89b45ffca06 (patch)
tree01ebd77857d40411b1559eeb4e9438ae551ce0a5 /GstDebugViewer
parent46f355b7def79b75db4e0f51001b41bd268b1993 (diff)
timeline: fix incorrect position after scrolling using the timeline
Apparently events are dropped internally, so the last position after you stop dragging can be off.
Diffstat (limited to 'GstDebugViewer')
-rw-r--r--GstDebugViewer/Plugins/Timeline.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/GstDebugViewer/Plugins/Timeline.py b/GstDebugViewer/Plugins/Timeline.py
index c826ceb..af5a9b5 100644
--- a/GstDebugViewer/Plugins/Timeline.py
+++ b/GstDebugViewer/Plugins/Timeline.py
@@ -836,8 +836,7 @@ class TimelineWidget (gtk.DrawingArea):
def do_motion_notify_event (self, event):
- x = event.x
- y = event.y
+ x, y, mod = self.window.get_pointer ()
if event.state & gtk.gdk.BUTTON1_MASK:
self.emit ("change-position", int (x))