Skip to content

Commit 9776ed7

Browse files
Victoria LeaseAndroid (Google) Code Review
authored andcommitted
Merge "scroll relative to visibleRect in spawnContentScrollTo()"
2 parents aa6816a + 16e25e6 commit 9776ed7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/java/android/webkit/WebViewClassic.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4176,9 +4176,9 @@ private void spawnContentScrollTo(int cx, int cy) {
41764176
// is used in the view system.
41774177
return;
41784178
}
4179-
int vx = contentToViewX(cx);
4180-
int vy = contentToViewY(cy);
4181-
pinScrollTo(vx, vy, true, 0);
4179+
int vx = contentToViewDimension(cx - mScrollOffset.x);
4180+
int vy = contentToViewDimension(cy - mScrollOffset.y);
4181+
pinScrollBy(vx, vy, true, 0);
41824182
}
41834183

41844184
/**

0 commit comments

Comments
 (0)