Consider the following code which I am running on Linux Mint.
When the SHIFT key is held down the value of WheelDelta is always negative.
When I uncomment the line to use the ALT key, WheelDelta is positive/negative depending on scroll direction.
Is this a SHIFT key error, or am I missing something about the semantics of SHIFT?
procedure TfMain.FormMouseWheel(Sender: TObject; Shift: TShiftState; WheelDelta: Integer; MousePos: TPoint; var Handled: Boolean);
var
adjustment: Integer = 1;
begin
fMain.Caption := WheelDelta.ToString; // Debug WheelDelta
//if ssAlt in Shift then adjustment := 10;
if ssShift in Shift then adjustment := 10;
if WheelDelta > 0 then tickPixels := tickPixels + adjustment
else tickPixels := tickPixels - adjustment;
if tickPixels > 20 then tickLabel5 := True else tickLabel5 := False;
if tickPixels > 50 then tickLabel1 := True else tickLabel1 := False;
if tickPixels < 10 then tickPixels := 10
else if tickPixels > 10000 then tickPixels := 10000;
formPaint (fMain);
Handled := True;
end;