Update the lastPosition with the full current position
By only updating parts of the lastPosition the axislock got confused, since the direction would be calculated from a mix of delta-movement and movements since touch begin. Task-Number: QTBUG-23530 Change-Id: I6b886d4819b963aba18bb86154df172070399206 Reviewed-by: Robert Griebl <robert.griebl@nokia.com>
This commit is contained in:
parent
510eb8da78
commit
aa23a18ad2
@ -1524,10 +1524,8 @@ void QScrollerPrivate::handleDrag(const QPointF &position, qint64 timestamp)
|
||||
dragDistance += deltaPixel;
|
||||
// }
|
||||
//qScrollerDebug() << "######################" << deltaPixel << position.y() << lastPosition.y();
|
||||
if (canScrollX)
|
||||
lastPosition.setX(position.x());
|
||||
if (canScrollY)
|
||||
lastPosition.setY(position.y());
|
||||
|
||||
lastPosition = position;
|
||||
lastTimestamp = timestamp;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user