summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorryanlwlin <ryanlwlin@google.com>2020-06-22 21:29:04 +0800
committerryanlwlin <ryanlwlin@google.com>2020-06-24 13:46:05 +0800
commit2047cd4ba1feebe88ad5eb3f15eaf5f3b3bbe17d (patch)
treee2d64cf93d5d57852eda18ceaa05b12fcf626df4 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parente658c76b5c1cdc67cf593ad000c5b862e31764fd (diff)
Fix the multi-fingers gesture conflict with TouchExplorer
TouchExplorer supports multi-finger gestures from R. However, FullScreenMagnificationGestureHandler has higher priority of receiving motion events than TouchExplorer. When the screen is zoomed in, two pointersdown gesture makes it transiting to PanningScalingState. To fix it, We post a tap tmeout to transit to PanningScalingState when receiving two pointers down. In this duration, any pointers action will make it transiting to DelegatingState. We also add a condition that is if the movement of any fingers exceeed the touchSlope, it will transit to PanningScalingState. Bug: 159508732 Test: atest FullScreenMagnificationGestureHandlerTest atest MagnificationGestureHandlerTest Change-Id: Ic72c0da68a6a4f1714da8d05f743d6218793a5da
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions