mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1225761 - Clear axis lock in CancelAnimation and EndTouch. r=botond
This commit is contained in:
parent
0fb4d58a20
commit
b4b0d26ddf
@ -2547,6 +2547,8 @@ void AsyncPanZoomController::CancelAnimation(CancelAnimationFlags aFlags) {
|
||||
bool repaint = !IsZero(GetVelocityVector());
|
||||
mX.SetVelocity(0);
|
||||
mY.SetVelocity(0);
|
||||
mX.SetAxisLocked(false);
|
||||
mY.SetAxisLocked(false);
|
||||
// Setting the state to nothing and cancelling the animation can
|
||||
// preempt normal mechanisms for relieving overscroll, so we need to clear
|
||||
// overscroll here.
|
||||
|
@ -382,6 +382,7 @@ void Axis::EndTouch(uint32_t aTimestampMs) {
|
||||
// mVelocityQueue is controller-thread only
|
||||
APZThreadUtils::AssertOnControllerThread();
|
||||
|
||||
mAxisLocked = false;
|
||||
mVelocity = 0;
|
||||
int count = 0;
|
||||
while (!mVelocityQueue.IsEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user