mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
28 lines
1.1 KiB
Diff
28 lines
1.1 KiB
Diff
|
From f9881e0556368da36b36687183e4be351bfbd81b Mon Sep 17 00:00:00 2001
|
||
|
From: Allan Sandfeld Jensen <allan.jensen@qt.io>
|
||
|
Date: Wed, 2 Jun 2021 15:54:43 +0200
|
||
|
Subject: [PATCH] Always send phased wheel events beginning with Began
|
||
|
|
||
|
The input event router does not like MayBegin.
|
||
|
|
||
|
Fixes: QTBUG-93082
|
||
|
Change-Id: I4ac9677d7f69da3d36fc33c17541026f011feb42
|
||
|
---
|
||
|
src/core/web_event_factory.cpp | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/src/core/web_event_factory.cpp b/src/core/web_event_factory.cpp
|
||
|
index 593acb5e5c..aa5ea40365 100644
|
||
|
--- a/src/core/web_event_factory.cpp
|
||
|
+++ b/src/core/web_event_factory.cpp
|
||
|
@@ -1585,7 +1585,7 @@ blink::WebMouseWheelEvent::Phase toBlinkPhase(QWheelEvent *ev)
|
||
|
#endif
|
||
|
return blink::WebMouseWheelEvent::kPhaseNone;
|
||
|
case Qt::ScrollBegin:
|
||
|
- return ev->angleDelta().isNull() ? blink::WebMouseWheelEvent::kPhaseMayBegin : blink::WebMouseWheelEvent::kPhaseBegan;
|
||
|
+ return blink::WebMouseWheelEvent::kPhaseBegan;
|
||
|
case Qt::ScrollUpdate:
|
||
|
return blink::WebMouseWheelEvent::kPhaseChanged;
|
||
|
case Qt::ScrollEnd:
|
||
|
--
|