summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorNikita Dubrovsky <dubrovsky@google.com>2020-02-16 15:54:23 -0800
committerNikita Dubrovsky <dubrovsky@google.com>2020-02-19 11:36:24 -0800
commit7c583592a8798d9787acd4a4e3b1de24fa784256 (patch)
treed59aabc6c63e7a2bfe9a515e64df6067d16e529e /tools/aapt2/java/JavaClassGenerator_test.cpp
parentb4ab54ad97fab171c0208e0f3de16f23d5609cea (diff)
Update cursor drag to snap the finger position to the handle + add slop
When dragging the cursor... 1) If the touch moves slightly above or below the current line, we keep moving the cursor along the same line without jumping up and down across lines. 2) When the drag motion moves downward, jumping to the lower line is delayed to allow the user's touch to snap to the cursor's handle. Once the touch is over the handle, we position the cursor above the user's actual touch (offset such that the finger remains over the handle rather than on top of the cursor vertical bar). This improves the visibility of the cursor and the text underneath. Bug: 148116165 Test: Manually and ran automated tests atest FrameworksCoreTests:EditorCursorDragTest atest FrameworksCoreTests:TextViewActivityTest atest FrameworksCoreTests:TextViewActivityMouseTest Change-Id: I88432cbc5a7f1a47cd35866f2001d51d3f66828b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions