avoid double seek

This commit is contained in:
Martin Wagner 2022-12-29 18:43:57 +01:00
parent a2e8ac875a
commit 1fd5a75567

View File

@ -2788,9 +2788,11 @@ class SeekBar(Gtk.Box):
self._scale.clear_marks()
def _on_scale_button_press_event(self, widget, event):
if (event.button == 1 or event.button == 3) and event.type == Gdk.EventType.BUTTON_PRESS:
self._update=False
def _on_scale_button_release_event(self, widget, event):
if event.button == 1 or event.button == 3:
self._update=True
self._client.seekcur(self._scale.get_value())