summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-06-02 15:54:43 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-06-11 07:31:04 +0200
commit9711f64c5082040cb76f6da5ef4a16037dbda08f (patch)
tree7a4e54f30d3dc0e73dca6ee3cfd75c6b2f382e1b
parent09bf7d7a9fc92c3c8bb5cd4b5094e330d9adf8ad (diff)
Always send phased wheel events beginning with Beganv5.15.5-lts5.15.5
The input event router does not like MayBegin. Fixes: QTBUG-93082 Change-Id: I4ac9677d7f69da3d36fc33c17541026f011feb42 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io> (cherry picked from commit 588ea0d45f983f70e707a502cb4f3e429bbd3876) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit eafc7b60313d9827f976f1d4fbb5e7f5d54eea7b) Reviewed-by: Tarja Sundqvist <tarja.sundqvist@qt.io>
-rw-r--r--src/core/web_event_factory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/web_event_factory.cpp b/src/core/web_event_factory.cpp
index 3beb913a..dcfa3dc3 100644
--- a/src/core/web_event_factory.cpp
+++ b/src/core/web_event_factory.cpp
@@ -1581,7 +1581,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: