clapper-gtk: Fix seek bar touchpad scrolling

Since we only do seek on scale drop, handle scrubbing using touchpad
the same way by marking it as "dragging" after scrubbing starts and
doing seek after it ends.
This commit is contained in:
Rafał Dzięgiel
2024-04-07 20:08:48 +02:00
parent 6e17996691
commit 1327dc23e4
2 changed files with 47 additions and 0 deletions

View File

@@ -29,6 +29,15 @@
<property name="adjustment">position_adjustment</property>
<signal name="value-changed" handler="scale_value_changed_cb"/>
<signal name="notify::css-classes" handler="scale_css_classes_changed_cb"/>
<child>
<object class="GtkEventControllerScroll">
<property name="propagation-phase">capture</property>
<property name="flags">both-axes</property>
<signal name="scroll-begin" handler="scale_scroll_begin_cb"/>
<signal name="scroll" handler="scale_scroll_cb"/>
<signal name="scroll-end" handler="scale_scroll_end_cb"/>
</object>
</child>
</object>
</child>
<child>