Skip to content
Discussion options

You must be logged in to vote

Ha! I might have figured out why we're seeing different behavior.

TL;DR There's a scrolling change to the dynamically linked libgtk of which I've got an older version.

❯ pkg-config --modversion gtk4
4.18.6

If I'm right folks who can't repro are on 4.20.1 or newer.

Longer version:
GtkEventControllerScroll emits a decelerate signal on scroll end if the kinetic flag is enabled (1, 2). I can verify this by connecting a callback to the decelerate signal in Ghostty:

+            _ = gtk.EventControllerScroll.signals.decelerate.connect(
+                controller,
+                *Self,
+                onDecelerate,
+                self,
+                .{},
+            );

+    fn onDece…

Replies: 2 comments 21 replies

Comment options

You must be logged in to vote
21 replies
@viruslobster
Comment options

@T3sT3ro
Comment options

@viruslobster
Comment options

@viruslobster
Comment options

Answer selected by viruslobster
@pluiedev
Comment options

@viruslobster
Comment options

@00-kat
Comment options

00-kat Mar 24, 2026
Collaborator

@00-kat
Comment options

00-kat Mar 24, 2026
Collaborator

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
input Keyboard or mouse input gtk Issues exclusive to GTK which are not OS-specific
6 participants