зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1225761 - Clear axis lock in CancelAnimation and EndTouch. r=botond
This commit is contained in:
Родитель
ec972087c8
Коммит
f9e9f04ed8
|
@ -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()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче