summaryrefslogtreecommitdiffstats
path: root/src
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-05 13:28:31 +0000
commit588ea0d45f983f70e707a502cb4f3e429bbd3876 (patch)
tree6155b58458fb40747f123cbca7dd5ca39af23f14 /src
parent7a57358683ee3a04c15d55b6475594aa81febf6f (diff)
Always send phased wheel events beginning with Began
The input event router does not like MayBegin. Pick-to: 5.15 Fixes: QTBUG-93082 Change-Id: I4ac9677d7f69da3d36fc33c17541026f011feb42 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src')
-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 593acb5e5..aa5ea4036 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: