From ea7fcec8a1d4681b013b9c8ce1e91107a7489b5a Mon Sep 17 00:00:00 2001 From: juha Date: Wed, 17 Aug 2016 10:40:18 +0000 Subject: [PATCH] LCL-QT: Ignore an invalid button value caused by rapid mouse wheel movement. git-svn-id: trunk@52811 - --- lcl/interfaces/qt/qtwidgets.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/lcl/interfaces/qt/qtwidgets.pas b/lcl/interfaces/qt/qtwidgets.pas index 6eb794cd8c..5b76f1086e 100644 --- a/lcl/interfaces/qt/qtwidgets.pas +++ b/lcl/interfaces/qt/qtwidgets.pas @@ -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)