summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_interface_scrollable.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-06-01 23:39:00 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-06-04 12:29:22 +0100
commit221b8075de10f473e21d929b1ca02b86b5e3635b (patch)
tree2af5426aec521e868135955983c8cf116477cab1 /src/lib/elementary/elm_interface_scrollable.c
parent45aeaa67503f8d0abd509df8f9e5154f882c671e (diff)
scroller - limit wheel accel a bit to something saner
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/elm_interface_scrollable.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/elementary/elm_interface_scrollable.c b/src/lib/elementary/elm_interface_scrollable.c
index 0721f94030..a9f18c25e7 100644
--- a/src/lib/elementary/elm_interface_scrollable.c
+++ b/src/lib/elementary/elm_interface_scrollable.c
@@ -2119,9 +2119,9 @@ _scroll_wheel_post_event_cb(void *data, Evas *e EINA_UNUSED)
2119 if (delta_t > 0.2) delta_t = 0.2; 2119 if (delta_t > 0.2) delta_t = 0.2;
2120 mul = 1.0 + (_elm_config->scroll_accel_factor * ((0.2 - delta_t) / 0.2)); 2120 mul = 1.0 + (_elm_config->scroll_accel_factor * ((0.2 - delta_t) / 0.2));
2121 mul = mul * (1.0 + (0.15 * sid->last_wheel_mul)); 2121 mul = mul * (1.0 + (0.15 * sid->last_wheel_mul));
2122 if (d > 1000) d = 1000; 2122 if (d > 10) d = 10;
2123 else if (d < -1000) d = -1000; 2123 else if (d < -10) d = -10;
2124 if (mul > 100000.0) mul = 100000.0; 2124 if (mul > 1000.0) mul = 1000.0;
2125 d *= mul; 2125 d *= mul;
2126 sid->last_wheel = ev->timestamp; 2126 sid->last_wheel = ev->timestamp;
2127 sid->last_wheel_mul = mul; 2127 sid->last_wheel_mul = mul;