mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
wayland: fix handling of non-discrete scroll events (#9548)
https://github.com/zed-industries/zed/pull/9103 broke touchpad scrolling on Wayland This PR correctly filters the `Axis` to handle all non-discrete scroll events (see https://wayland.app/protocols/wayland#wl_pointer:enum:axis_source) Should fix https://github.com/zed-industries/zed/issues/9525 Release Notes: - N/A
This commit is contained in:
parent
8ae5a3b61a
commit
2c36652be2
@ -966,8 +966,9 @@ impl Dispatch<wl_pointer::WlPointer, ()> 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user