mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 12:18:03 +02:00
LCL-QT: Ignore an invalid button value caused by rapid mouse wheel movement.
git-svn-id: trunk@52811 -
This commit is contained in:
parent
f0a7cff071
commit
ea7fcec8a1
@ -3592,6 +3592,7 @@ begin
|
||||
QtRightButton: LazButton := 2;
|
||||
QtMidButton: LazButton := 3;
|
||||
QtXButton1, QtXButton2: LazButton := 4;
|
||||
else Exit; // Sometimes mouse wheel triggers an invalid button value. Ignore it.
|
||||
end;
|
||||
// do not pass mouse button into keys (TShiftState). issue #20916
|
||||
if (QEvent_type(Event) <> QEventMouseButtonRelease)
|
||||
|
Loading…
Reference in New Issue
Block a user