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

Commit fbb1560d authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

Touch exploration hover events don't map coordinates correctly on scrollable WebViews.

1. While mapping Android hover to WebKit mouse events I was not
   taking into account the horizontal and vertical scroll.

bug:4807087

Change-Id: Ie24a8a30ce6a20d27b627ae7c7fbff1b74d140c8
parent c9507ac7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -5707,8 +5707,8 @@ public class WebView extends AbsoluteLayout
            return false;
        }
        WebViewCore.CursorData data = cursorDataNoPosition();
        data.mX = viewToContentX((int) event.getX());
        data.mY = viewToContentY((int) event.getY());
        data.mX = viewToContentX((int) event.getX() + mScrollX);
        data.mY = viewToContentY((int) event.getY() + mScrollY);
        mWebViewCore.sendMessage(EventHub.SET_MOVE_MOUSE, data);
        return true;
    }