From da5dc2062576b75b6427fcc2bc74dc4fcfd9dcf5 Mon Sep 17 00:00:00 2001 From: Mikolaj Boc Date: Fri, 27 Jan 2023 15:01:34 +0100 Subject: Transfer touch event handling to QWasmWindow Fixes: QTBUG-103498 Change-Id: Iec8b5cfba75131e7ddf855e6b729291950888fd3 Reviewed-by: Lorn Potter Reviewed-by: Aleksandr Reviakin --- src/plugins/platforms/wasm/qwasmcssstyle.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins/platforms/wasm/qwasmcssstyle.cpp') diff --git a/src/plugins/platforms/wasm/qwasmcssstyle.cpp b/src/plugins/platforms/wasm/qwasmcssstyle.cpp index 3efe4504957..79b1964d223 100644 --- a/src/plugins/platforms/wasm/qwasmcssstyle.cpp +++ b/src/plugins/platforms/wasm/qwasmcssstyle.cpp @@ -26,6 +26,10 @@ const char *Style = R"css( overflow: hidden; } +.qt-screen div { + touch-action: none; +} + .qt-window { position: absolute; background-color: lightgray; @@ -152,6 +156,7 @@ const char *Style = R"css( .qt-window-canvas-container { display: flex; + pointer-events: none; } .title-bar div { -- cgit v1.2.3