mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
disabled noise on scrolling hovering the seek bar
This commit is contained in:
parent
97049bbd72
commit
601b6aa33e
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user