disabled noise on scrolling hovering the seek bar

This commit is contained in:
Martin Wagner 2020-02-29 23:57:44 +01:00
parent 97049bbd72
commit 601b6aa33e

View File

@ -1385,6 +1385,7 @@ class SeekBar(Gtk.Box):
#connect
self.scale.connect("change-value", self.seek)
self.scale.connect("scroll-event", self.dummy) #disable mouse wheel which caused some noise
#timeouts
GLib.timeout_add(100, self.update)
@ -1396,6 +1397,9 @@ class SeekBar(Gtk.Box):
self.pack_start(self.scale, True, True, 0)
self.pack_end(self.rest_event_box, False, False, 0)
def dummy(self, *args):
return True
def seek(self, range, scroll, value):
status=self.client.status()
duration=float(status["duration"])