From 9f49fb59d27af0c456fb68f7f24a81de028546be Mon Sep 17 00:00:00 2001 From: MaxVerevkin Date: Fri, 2 Jun 2023 15:08:20 +0300 Subject: fix typo --- src/state.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/state.rs b/src/state.rs index 23f8bea..7419357 100644 --- a/src/state.rs +++ b/src/state.rs @@ -345,7 +345,7 @@ fn wl_pointer_cb( .unwrap(); } - if scroll.is_finder && state.shared_state.config.invert_touchpad_scrolling { + if scroll.is_finger && state.shared_state.config.invert_touchpad_scrolling { pointer.pending_scroll -= scroll.absolute; } else { pointer.pending_scroll += scroll.absolute; @@ -413,7 +413,7 @@ fn wl_pointer_cb( } } Event::AxisSource(source) => { - pointer.scroll_frame.is_finder = source == wl_pointer::AxisSource::Finger; + pointer.scroll_frame.is_finger = source == wl_pointer::AxisSource::Finger; } Event::AxisStop(args) => { if args.axis == wl_pointer::Axis::VerticalScroll { @@ -452,7 +452,7 @@ fn wm_info_cb(conn: &mut Connection, state: &mut State, output: WlOutput, pub struct ScrollFrame { stop: bool, absolute: f64, - is_finder: bool, + is_finger: bool, } impl ScrollFrame { -- cgit v1.3.1