mirror of https://github.com/qt/qtbase.git
swipeTriggered() often chose the wrong direction, because the logic was allowing either vertical or horizontal decisions to override each other: if you swipe to the right, but also a little upwards for example, "up" overrode "right" and you would go back instead of forward. It worked only if you made an effort to swipe both down and right to go forwards, and both up and left to go back. The docs are not wrong at least: horizontalDirection or verticalDirection is set to NoDirection only in the case that the angle doesn't have "a horizontal component" or "a vertical component", respectively (assuming that's even possible). So those enum properties are only useful if you want to detect swiping on only one axis. Instead, we now check which side of a 45 degree line the angle is on. Pick-to: 6.10 6.9 6.8 6.5 Task-number: QTBUG-37759 Task-number: QTBUG-46195 Change-Id: Ibd78071dc78ccaa13d63200e26a614b7017a9b1b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> |
||
---|---|---|
.github/workflows | ||
LICENSES | ||
bin | ||
cmake | ||
coin | ||
config.tests | ||
dist | ||
doc | ||
examples | ||
lib | ||
libexec | ||
mkspecs | ||
qmake | ||
src | ||
tests | ||
util | ||
.cmake.conf | ||
.gitattributes | ||
.gitignore | ||
.gitreview | ||
.tag | ||
CMakeLists.txt | ||
REUSE.toml | ||
config_help.txt | ||
configure | ||
configure.bat | ||
configure.cmake | ||
dependencies.yaml | ||
licenseRule.json | ||
qt_cmdline.cmake |