From ef3be0541ca39c5aa94461b3dc3a9eba31a63c60 Mon Sep 17 00:00:00 2001 From: eriedaberrie Date: Tue, 15 Sep 2026 04:50:44 -0400 Subject: [PATCH] feat(input): Signal scroll stop events for continuous sources Send a stop event for continuous axis sources, not just finger, when a scroll value of 0 exists on an axis. Technically we are using a deprecated API that does not guarantee that continuous sources will actually terminate scroll sequences with a zero-delta event but it seems to work in practice. --- src/input/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/mod.rs b/src/input/mod.rs index 7ddc4c3b..183909ee 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -3568,7 +3568,7 @@ impl State { } } - if source == AxisSource::Finger { + if source == AxisSource::Finger || source == AxisSource::Continuous { if event.amount(Axis::Horizontal) == Some(0.0) { frame = frame.stop(Axis::Horizontal); }