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

Skip to content
Commit 97ae05c7 authored by Taran Singh's avatar Taran Singh
Browse files

Make handwriting surface ignore touch when stylus is down

With support of simultaneous touch and stylus feature, we now allow
user to simulataneous touch and stylus on different windows. However,
stylus handwriting is a special case (using spy surface) can receive
stylus and finger touch in the app, which can steal focus and end stylus
handwriting session abruptly.

This change makes the app and system areas untouchable while stylus is
down to prevent accidental touches. When stylus is UP, its reverted to
NOT_TOUCHABLE (i.e. lets the touch passthrough).

Bug: 332850063
Test: atest StylusHandwritingTest

Change-Id: I927cee4e8ebb727f157d24b81558ccbe55696d14
parent 964cb83b
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