Commit 58868ef
committed
Don't use pixelDelta() on X11.
pixelDelta() is explicitly documented as "unreliable" and not-to-be-used
on X11 (https://doc.qt.io/qt-5/qwheelevent.html#pixelDelta);
locally, it reports the same value as angleDelta, but
because it isn't scaled, the value is 120x too big. So add
a check that forces the use of angleDelta() on X11 (see also
https://doc.qt.io/qt-6/qguiapplication.html#platformName-prop).1 parent a8dccd5 commit 58868ef
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
315 | | - | |
316 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
| |||
0 commit comments