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

Commit 1cfe8ddf authored by John Reck's avatar John Reck
Browse files

Support for correctly scaling text selection handles

 Bug: 5367280

Change-Id: If32fdc9cd82d1a66bc96446a123c44d9edd9d340
parent 2cdbe2f1
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -2392,6 +2392,12 @@ public class WebView extends AbsoluteLayout
        return mZoomManager.getScale();
        return mZoomManager.getScale();
    }
    }


    // Called by JNI. Returns the scale to apply to the text selection handles
    /* package */ float getTextHandleScale() {
        float density = mContext.getResources().getDisplayMetrics().density;
        return density / getScale();
    }

    /**
    /**
     * Return the reading level scale of the WebView
     * Return the reading level scale of the WebView
     * @return The reading level scale.
     * @return The reading level scale.