diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2019-11-18 16:32:25 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-11-26 11:59:43 +0000 |
commit | b3de744dba87fd8d5c2bdb9ed4c56a3e5455188b (patch) | |
tree | 7ef6f858219f52442f92dd112c2441b3c14406d0 /dist | |
parent | 8ecc00ff54d987ddd8cfbd45a9f2a5bfe18aad80 (diff) |
mouseDrag(): ensure that intermediate moves are done for all drags
The code checking if the intermediate move distance was less than
the drag threshold, but without accounting for negative distances.
Since the negative distances were naturally less than the drag
threshold, the intermediate distances were set to zero and the
intermediate moves were never done.
In practice, this means that mouseDrag() never did intermediate
moves (i.e. what happens during a drag in real life) for drags
that go from right to left or upwards.
Task-number: QTBUG-80152
Change-Id: Ic27021f5ce5ba2937e95fb2dfb532bd2136f4205
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
(cherry picked from commit fad8ef3e4133538e3785d7067c35c652bc894711)
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
Diffstat (limited to 'dist')
0 files changed, 0 insertions, 0 deletions