diff options
author | Morten Sørvig <morten.sorvig@qt.io> | 2022-05-13 14:58:24 +0200 |
---|---|---|
committer | Morten Sørvig <morten.sorvig@qt.io> | 2022-05-24 03:10:10 +0200 |
commit | e3b3c77d0e173c28641decf817ad267c6cf0d967 (patch) | |
tree | 8377f345858a5b7fd01533a889b603204837df65 /src/testlib/doc/snippets/CMakeLists.txt | |
parent | ff59343490c02e000c379585f41aafa31b92e5ce (diff) |
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>
Diffstat (limited to 'src/testlib/doc/snippets/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions