TDrawGrid excessive mouse wheel speed, and my solution. lazarus / 31-LCL ---------------------------------------------------------------------- Manlio · 2021-07-17 16:26 I find that when using a mouse wheel to scroll through a long list implemented with TDrawStringGrid, the scrolling speed is so high that it makes borderline unusable. A tiny movement on the wheel translates in more than a pageful of items - it's more than annoying, it's just unusable, very quickly one gives up and goes to use the scrollbar instead. Today, after yet another complaint from a user, I decided to find a solution, and I came up with the following approach: an Integer property WheelBrakes which slows down the scrolling speed as follows. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i     TMyDrawGrid = class (TDrawGrid)    private      fWheelCount: integer;      fWheelDelta: integer;      fWheelBrakes: integer;    protected    procedure GridMouseWheel(shift: TShiftState; Delta: Integer); override;    published      property WheelBrakes: integer read fWheelBrakes write fWheelBrakes;    end;  Implementation: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i     procedure TMyDrawGrid.GridMouseWheel(shift: TShiftState; Delta: Integer);    begin      if WheelBrakes > 0 then begin        if fWheelDelta <> Delta then begin          fWheelDelta := delta;        fWheelCount := 0;        end;        inc(fWheelCount);        if fWheelCount <= fWheelBrakes then exit;        fWheelCount := 0;      end;      inherited GridMouseWheel(shift, Delta);    end;  Basically, if WheelBrakes > 0, a corresponding number of scroll commands are skipped, and the scrolling becomes correspondingly slower. I find that WheelBrakes = 4 is about right for my purposes. I hope this may be useful to someone. Best regards to all! ---------------------------------------------------------------------- jamie · 2021-07-17 16:30 What widget are you on because I seem to remember some widgets did not act the same across the board with mouse wheels. Bad implementation of the mouse scroll, it shouldn't be flying off the map like that. ---------------------------------------------------------------------- Manlio · 2021-07-26 14:57 Quote from: jamie on July 17, 2021, 06:30:51 pmWhat widget are you on I tested the above on Windows and MacOS (cocoa). In both cases the mouse wheel is much faster than desired, and in both cases my code works at making it more usable. And in both cases the same value of WheelBrakes seems to bring similar results in terms of scrolling speed, which to me it means that mouse wheel actions in Windows and MacOS are probably implemented in the same way. (Sorry for the slow reply) ---------------------------------------------------------------------- jamie · 2021-07-26 21:52 if it works for you then go with it.. Delta for the most part of 120 in value for each click of the mouse wheel. This was done by MS because finer mouse wheels can  be used which then give you lower values per wheel click.