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

Commit 4695e20a authored by Michael Kolb's avatar Michael Kolb
Browse files

fix layer scrollbar updates

    Bug: 5868791

tell webkit the layer has been scrolled

Change-Id: Ib12963340d950be992fbe5f9520c9a33c04404e8
parent cc985804
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3742,6 +3742,8 @@ public class WebView extends AbsoluteLayout
        nativeScrollLayer(mCurrentScrollingLayerId, x, y);
        mScrollingLayerRect.left = x;
        mScrollingLayerRect.top = y;
        mWebViewCore.sendMessage(WebViewCore.EventHub.SCROLL_LAYER, mCurrentScrollingLayerId,
                mScrollingLayerRect);
        onScrollChanged(mScrollX, mScrollY, mScrollX, mScrollY);
        invalidate();
    }
+7 −0
Original line number Diff line number Diff line
@@ -1097,6 +1097,8 @@ public final class WebViewCore {

        static final int HEARTBEAT = 197;

        static final int SCROLL_LAYER = 198;

        // private message ids
        private static final int DESTROY =     200;

@@ -1708,6 +1710,11 @@ public final class WebViewCore {
                                mBrowserFrame.stringByEvaluatingJavaScriptFromString((String) msg.obj);
                            }
                            break;
                        case SCROLL_LAYER:
                            int nativeLayer = msg.arg1;
                            Rect rect = (Rect) msg.obj;
                            nativeScrollLayer(mNativeClass, nativeLayer,
                                    rect);
                    }
                }
            };