added mouse wheel support also for SDL2 target
[rocksndiamonds.git] / src / libgame / gadgets.c
index 6200c9dc3da22291d19e086f1c5acdf99685e4d4..1a0da4b45f55ad6dd469efb796edd063049052b4 100644 (file)
@@ -1779,7 +1779,7 @@ boolean HandleGadgets(int mx, int my, int button)
        {
          boolean scroll_single_step = ((GetKeyModState() & KMOD_Alt) != 0);
 
-         item_steps = (scroll_single_step ? 1 : DEFAULT_WHEEL_STEPS);
+         item_steps = (scroll_single_step ? 1 : wheel_steps);
          item_direction = (button == MB_WHEEL_UP ||
                            button == MB_WHEEL_LEFT ? -1 : +1);
        }