diff options
author | Jan Arve Saether <jan-arve.saether@qt.io> | 2016-12-07 14:19:54 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2016-12-07 19:30:51 +0000 |
commit | 558bb0e3bbbd3eaca52b02946374f2106c3a3872 (patch) | |
tree | 9a3dfbba9b8888b032f12eae49ee7ae9e0a25462 /tools/qmlplugindump/main.cpp | |
parent | 48591ce7dc00ec2c00ec3983a9572398fbd794b8 (diff) |
QQuickWindowPrivate::dragOverThreshold(): ignore zero velocity threshold
Previously, this would trigger a drag even if the touch point was quite
steady, since a rather steady finger could report a very small velocity
(usually between 0 and 1).
Change so that it will ignore velocity if it's not positive.
At the same time convert it to a template function since we want to also
use this for QQuickEventPoint later on.
Change-Id: Ibb2210813707399ae84e3422718c995897891060
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'tools/qmlplugindump/main.cpp')
0 files changed, 0 insertions, 0 deletions