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

Commit f5124e39 authored by George Mount's avatar George Mount
Browse files

Move the selection handles vertically to match TextView.

 Bug 6185758

Change-Id: I4165f216b5e02cab5b19f10666f28abbb956de03
parent ddc421d1
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -4909,11 +4909,9 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
     */
    private void getSelectionHandles(int[] handles) {
        handles[0] = mSelectCursorBase.right;
        handles[1] = mSelectCursorBase.bottom -
                (mSelectCursorBase.height() / 4);
        handles[1] = mSelectCursorBase.bottom;
        handles[2] = mSelectCursorExtent.left;
        handles[3] = mSelectCursorExtent.bottom
                - (mSelectCursorExtent.height() / 4);
        handles[3] = mSelectCursorExtent.bottom;
        if (!nativeIsBaseFirst(mNativeClass)) {
            int swap = handles[0];
            handles[0] = handles[2];