From a89279d556e0988eafa24f367c51689930ec266d Mon Sep 17 00:00:00 2001 From: James Frost Date: Thu, 28 Mar 2024 21:21:22 +0000 Subject: [PATCH] window: Don't animate mouse fwd/back button The forward and back buttons often found on the side of mice are binary inputs in the same way keyboard keys are. After the change in !373 where key presses where made instantaneous the mouse buttons have been inconsistent. This change rectifies that. Fixes #340 --- src/window.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/window.rs b/src/window.rs index 4c7a908..2791e42 100644 --- a/src/window.rs +++ b/src/window.rs @@ -304,11 +304,11 @@ mod imp { self.forward_click_gesture .connect_pressed(clone!(@weak obj => move |_,_,_,_| { - obj.image_view().navigate(Direction::Forward, true); + obj.image_view().navigate(Direction::Forward, false); })); self.backward_click_gesture .connect_pressed(clone!(@weak obj => move |_,_,_,_| { - obj.image_view().navigate(Direction::Back, true); + obj.image_view().navigate(Direction::Back, false); })); self.properties_button .connect_toggled(clone!(@weak obj => move |_| {