qt5base-lts/tests/manual/wasm
Morten Sørvig e3b3c77d0e wasm: Improve wheel event handling
Always invert scroll deltas. This is what the code did
before, expect for on non-Safari macOS. There is no
need any "smart" code here: correct deltas are provided
by the native API regardless of macOS scroll direction
setting.

Reading webkitDirectionInvertedFromDevice is still useful
for certain use cases, such as 3D scene zooming or spinbox
value change, where upwards motion on the trackpad should
always correspond to "increment" regardless of scroll direction.
Propagate this to Qt using one of the handleWheelEvent()
overloads

Finally, we were sending pixel deltas as angle deltas;
fix by sending pixel deltas as well, but keep existing
angle delta behavior for compatibility.

Change-Id: I7a7104c30da057fefc0377816e551a9e7e2fa0e7
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
Reviewed-by: David Skoland <david.skoland@qt.io>
2022-05-24 03:10:10 +02:00
..
clipboard Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
cursors Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
eventloop Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
localfiles Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
rasterwindow wasm: Improve wheel event handling 2022-05-24 03:10:10 +02:00
CMakeLists.txt wasm: add rasterwindow manual test 2021-12-15 18:06:11 +02:00
README.md wasm: add rasterwindow manual test 2021-12-15 18:06:11 +02:00

Manual tests and examples for Qt on WebAssembly

These examples demonstrates various technical aspects of the Qt for WebAssambly platform port, and can be used as a reference when writing application code.

Content

cursors         Cursor handling
eventloop       Event loops, application startup, dialog exec()
localfiles      Local file download and upload
rasterwindow    Basic GUI app, event handling