Merge pull request #1504 from lrorpilla/horizontal_scrolling_context_menu_fix

Fix no horizontal scroll x for context menu for pages with horizontal…
This commit is contained in:
Lorenzo Pichilli 2023-11-11 14:33:03 +01:00 committed by GitHub
commit fa6d00adf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1703,7 +1703,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() {