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

Skip to content
Commit 02311ce9 authored by Justin Ghan's avatar Justin Ghan
Browse files

Scribe: Prevent scrolling when starting handwriting

After startStylusHandwriting is called, there is a short period before an ACTION_CANCEL motion event is dispatched. During this period, ACTION_MOVE motion events may continue to be received by the view root. This may cause a short scroll to occur before handwriting begins.

To prevent this, HandwritingInitiator will suppress ACTION_MOVE events
from a stylus gesture after startStylusHandwriting is called.

Fixes: 223805216
Fixes: 228210945
Bug: 222375667
Test: atest FrameworksCoreTests:android.view.stylus.HandwritingInitiatorTest
Test: atest CtsInputMethodTestCases:android.view.inputmethod.cts.StylusHandwritingTest
Change-Id: If7ed76f55c6a5f010631762733e851b5314334de
parent c204e929
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment