We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9a91ad + 7ae9f3a commit d3788b9Copy full SHA for d3788b9
core/java/android/webkit/ZoomManager.java
@@ -493,6 +493,9 @@ public void animateZoom(Canvas canvas) {
493
494
if (mHardwareAccelerated) {
495
mWebView.updateScrollCoordinates(mWebView.getScrollX() - tx, mWebView.getScrollY() - ty);
496
+ // By adding webView matrix, we need to offset the canvas a bit
497
+ // to make the animation smooth.
498
+ canvas.translate(tx, ty);
499
setZoomScale(zoomScale, false);
500
501
if (mZoomScale == 0) {
0 commit comments