diff --git a/crates/gpui/src/platform/linux/wayland/client.rs b/crates/gpui/src/platform/linux/wayland/client.rs index 7bb3ebb0f8dde..c2a470a48dfcc 100644 --- a/crates/gpui/src/platform/linux/wayland/client.rs +++ b/crates/gpui/src/platform/linux/wayland/client.rs @@ -966,8 +966,9 @@ impl Dispatch for WaylandClientState { value, .. } => { + // We handle discrete scroll events with `AxisValue120`. if wl_pointer.version() >= wl_pointer::EVT_AXIS_VALUE120_SINCE - && state.axis_source != AxisSource::Continuous + && state.axis_source == AxisSource::Wheel { return; }