From 4183b932af9e3fb93880ab49b10c06ded2ecb91e Mon Sep 17 00:00:00 2001 From: lrorpilla Date: Mon, 9 Jan 2023 17:31:30 +1000 Subject: [PATCH] Fix no horizontal scroll x for context menu for pages with horizontal scrolling --- .../webview/in_app_webview/InAppWebView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/webview/in_app_webview/InAppWebView.java b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/webview/in_app_webview/InAppWebView.java index 9380f92d..3d67dce1 100755 --- a/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/webview/in_app_webview/InAppWebView.java +++ b/android/src/main/java/com/pichillilorenzo/flutter_inappwebview/webview/in_app_webview/InAppWebView.java @@ -1692,7 +1692,7 @@ final public class InAppWebView extends InputAwareWebView implements InAppWebVie updateViewLayout( floatingContextMenu, - new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT, curx, ((int) cury) + getScrollY()) + new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT, curx + getScrollX(), ((int) cury) + getScrollY()) ); mainLooperHandler.post(new Runnable() {