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

Commit b64f6f89 authored by Mike Reed's avatar Mike Reed
Browse files

only send new visiblerect and size on onscrollchanged if we're not in overscroll mode

Change-Id: Ifa290121db8f0a3612f40c40bab4f92494ce93df
parent 6787b7c5
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -4195,7 +4195,15 @@ public class WebView extends AbsoluteLayout
    @Override
    protected void onScrollChanged(int l, int t, int oldl, int oldt) {
        super.onScrollChanged(l, t, oldl, oldt);
        if (!mInOverScrollMode) {
            sendOurVisibleRect();
            // update WebKit if visible title bar height changed. The logic is same
            // as getVisibleTitleHeight.
            int titleHeight = getTitleHeight();
            if (Math.max(titleHeight - t, 0) != Math.max(titleHeight - oldt, 0)) {
                sendViewSizeZoom();
            }
        }
    }

    @Override