diff --git a/src/plugins/platforms/wasm/qwasmeventtranslator.cpp b/src/plugins/platforms/wasm/qwasmeventtranslator.cpp index 2387f3cdea..8c0d2e21e0 100644 --- a/src/plugins/platforms/wasm/qwasmeventtranslator.cpp +++ b/src/plugins/platforms/wasm/qwasmeventtranslator.cpp @@ -353,7 +353,7 @@ void QWasmEventTranslator::initEventHandlers() if (platform == MacOSPlatform) { g_useNaturalScrolling = false; // make this !default on macOS - if (emscripten::val::global("window")["safari"].isUndefined()) { + if (!emscripten::val::global("window")["safari"].isUndefined()) { val canvas = screen()->canvas(); canvas.call("addEventListener", val("wheel"),