summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-10-21 20:12:11 +0900
committertmk <nobody@nowhere>2012-10-21 20:12:11 +0900
commit454f7bc71657020d0574e849dad92a14e71230c4 (patch)
treed068aeed44c1ec03b0d5b1afdb0e667b79eb14fb
parent8a81986191ba797a8501cd7b3f8a0e9b58b5b30e (diff)
Fix mousekey parameter bug
-rw-r--r--common/mousekey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/mousekey.c b/common/mousekey.c
index b8af3e59c7..d26b26306f 100644
--- a/common/mousekey.c
+++ b/common/mousekey.c
@@ -86,7 +86,7 @@ static uint8_t wheel_unit(void)
unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed);
} else if (mousekey_repeat == 0) {
unit = MOUSEKEY_WHEEL_DELTA;
- } else if (mousekey_repeat >= mk_time_to_max) {
+ } else if (mousekey_repeat >= mk_wheel_time_to_max) {
unit = MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed;
} else {
unit = (MOUSEKEY_WHEEL_DELTA * mk_wheel_max_speed * mousekey_repeat) / mk_wheel_time_to_max;