Skip to content

Commit 3beeb1c

Browse files
author
Victoria Lease
committed
finalise scrolling before checking scroll position
Bug: 5470588 Change-Id: I09435875895452d0b015a641b471b113b84f9bf5
1 parent dbaf2cc commit 3beeb1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/webkit/WebViewClassic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4081,6 +4081,7 @@ private boolean pinScrollBy(int dx, int dy, boolean animate, int animationDurati
40814081
// helper to pin the scrollTo parameters (already in view coordinates)
40824082
// returns true if the scroll was changed
40834083
private boolean pinScrollTo(int x, int y, boolean animate, int animationDuration) {
4084+
abortAnimation();
40844085
x = pinLocX(x);
40854086
y = pinLocY(y);
40864087
int dx = x - getScrollX();
@@ -4089,7 +4090,6 @@ private boolean pinScrollTo(int x, int y, boolean animate, int animationDuration
40894090
if ((dx | dy) == 0) {
40904091
return false;
40914092
}
4092-
abortAnimation();
40934093
if (animate) {
40944094
// Log.d(LOGTAG, "startScroll: " + dx + " " + dy);
40954095
mScroller.startScroll(getScrollX(), getScrollY(), dx, dy,

0 commit comments

Comments
 (0)