Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ae9f3ab authored by Teng-Hui Zhu's avatar Teng-Hui Zhu
Browse files

WebView animation support

Fix the jumping issue when double tapping

bug:4982054
Change-Id: Ifb67030a3132fe3820a1fcc8ffc97a1ab474c223
parent 7257a32b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -493,6 +493,9 @@ class ZoomManager {

        if (mHardwareAccelerated) {
            mWebView.updateScrollCoordinates(mWebView.getScrollX() - tx, mWebView.getScrollY() - ty);
            // By adding webView matrix, we need to offset the canvas a bit
            // to make the animation smooth.
            canvas.translate(tx, ty);
            setZoomScale(zoomScale, false);

            if (mZoomScale == 0) {