LCL-QT: Ignore an invalid button value caused by rapid mouse wheel movement.

git-svn-id: trunk@52811 -
This commit is contained in:
juha 2016-08-17 10:40:18 +00:00
parent f0a7cff071
commit ea7fcec8a1

View File

@ -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)