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.
This commit is contained in:
René Stadler 2012-09-24 22:58:58 +02:00 committed by Stefan Sauer
parent 8e2000a3e2
commit b3960cf8e0

View file

@ -836,8 +836,7 @@ class TimelineWidget (gtk.DrawingArea):
def do_motion_notify_event (self, event): def do_motion_notify_event (self, event):
x = event.x x, y, mod = self.window.get_pointer ()
y = event.y
if event.state & gtk.gdk.BUTTON1_MASK: if event.state & gtk.gdk.BUTTON1_MASK:
self.emit ("change-position", int (x)) self.emit ("change-position", int (x))