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

Commit 3d8fd789 authored by Taran Singh's avatar Taran Singh
Browse files

Skip stylus hover events from buffer

The buffered events are delivered to IME once handwriting window is
available. These events are solely used to draw ink and hover events can
be skipped.

Bug: 287335464
Test: atest CtsInputMethodTestCases
Change-Id: I496af001ffa04efa87fcadb04ad453fa7f07cf9d
parent 4ac3a5d5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -337,6 +337,10 @@ final class HandwritingModeController {
            // Ask IMMS to make ink window ready.
            mInkWindowInitRunnable.run();
            mInkWindowInitRunnable = null;
            return;
        } else if (event.isHoverEvent()) {
            // Hover events need not be recorded to buffer.
            return;
        }

        // If handwriting delegation is ongoing, don't clear the buffer so that multiple strokes