From d18e95703e0844803f33b9c94a87e2bef14348dc Mon Sep 17 00:00:00 2001 From: fufesou <13586388+fufesou@users.noreply.github.com> Date: Sun, 14 Jul 2024 03:49:16 +0800 Subject: [PATCH] fix: mouse forward back (#8705) Signed-off-by: fufesou --- libs/enigo/src/win/win_impl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/enigo/src/win/win_impl.rs b/libs/enigo/src/win/win_impl.rs index 0598eb608..882dba126 100644 --- a/libs/enigo/src/win/win_impl.rs +++ b/libs/enigo/src/win/win_impl.rs @@ -154,8 +154,8 @@ impl MouseControllable for Enigo { } }, match button { - MouseButton::Back => XBUTTON1 as u32 * WHEEL_DELTA as u32, - MouseButton::Forward => XBUTTON2 as u32 * WHEEL_DELTA as u32, + MouseButton::Back => XBUTTON1 as u32, + MouseButton::Forward => XBUTTON2 as u32, _ => 0, }, 0,