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

Commit 6ab0007b authored by Haoyu Zhang's avatar Haoyu Zhang
Browse files

Reduce handwritingSlop to 2dp

To help improve the punctuation recoginization accuracy. We decided to
reduce the handwritingSlop to make it easier for user to trigger
handwriting with small strokes.

Bug: 289118001
Test: atest HandwritingInitiatorTest
Change-Id: I0f9ef38996cb061a85e415429c7ab5f86ebb22ba
parent 6552d2f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -181,7 +181,7 @@ public class ViewConfiguration {
    private static final int TOUCH_SLOP = 8;

    /** Distance a stylus touch can wander before we think the user is handwriting in dips. */
    private static final int HANDWRITING_SLOP = 4;
    private static final int HANDWRITING_SLOP = 2;

    /**
     * Defines the minimum size of the touch target for a scrollbar in dips
+1 −1
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ public class HandwritingInitiatorTest {
    private static final int HW_BOUNDS_OFFSETS_TOP_PX = 20;
    private static final int HW_BOUNDS_OFFSETS_RIGHT_PX = 30;
    private static final int HW_BOUNDS_OFFSETS_BOTTOM_PX = 40;
    private int mHandwritingSlop = 4;
    private int mHandwritingSlop = 2;

    private static final Rect sHwArea1;
    private static final Rect sHwArea2;