geigi / cozy

🎧 Listen to audio books 📚 on Linux
https://cozy.sh
GNU General Public License v3.0
1.1k stars 85 forks source link

Fix the seek bar dragging issue #837

Closed rdbende closed 8 months ago

rdbende commented 9 months ago

Using a GtkGestureClick here is not possible, as GtkRange's internal gesture controller claims the button press event, and thus the released signal doesn't get emitted. Therefore I added this hacky solution that gets its internal GtkGestureClick, and appends the seek bar's handlers to that.

Ideally this would be fixed in GTK, and GtkRange would forward these signals, so we wouldn't need this hack. Here's the issue about it on the GTK GitLab repo: https://gitlab.gnome.org/GNOME/gtk/-/issues/4939