summaryrefslogtreecommitdiff
path: root/src/ui/listwidget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/listwidget.c')
-rw-r--r--src/ui/listwidget.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ui/listwidget.c b/src/ui/listwidget.c
index e7b4fc22..237562ca 100644
--- a/src/ui/listwidget.c
+++ b/src/ui/listwidget.c
@@ -303,14 +303,9 @@ static iBool processEvent_ListWidget_(iListWidget *d, const SDL_Event *ev) {
303 } 303 }
304 if (ev->type == SDL_MOUSEWHEEL && isHover_Widget(w)) { 304 if (ev->type == SDL_MOUSEWHEEL && isHover_Widget(w)) {
305 int amount = -ev->wheel.y; 305 int amount = -ev->wheel.y;
306#if defined (iPlatformApple) 306 if (!isPerPixel_MouseWheelEvent(&ev->wheel)) {
307# if defined (iPlatformAppleDesktop) 307 amount *= 3 * d->itemHeight;
308 /* Momentum scrolling (in points). */ 308 }
309 amount *= get_Window()->pixelRatio;
310# endif
311#else
312 amount *= 3 * d->itemHeight;
313#endif
314 scrollOffset_ListWidget(d, amount); 309 scrollOffset_ListWidget(d, amount);
315 return iTrue; 310 return iTrue;
316 } 311 }