summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Jean Chen <chenjean@google.com> 2023-09-25 10:22:39 +0800
committer Jean Chen <chenjean@google.com> 2023-10-04 14:21:57 +0800
commit6d939f9ec13384c7f90be883e0c8a78f5556599f (patch)
tree6c6932897d358e8ca72416a80806a71cbd15846b /api/api.go
parent2934897e3fb94ff9b3dac183788acda8148c4056 (diff)
Fix pinch zoom with partial magnification window not very responsive
When two fingers are too close, the android.view.ScaleGestureDetector will end the scale by minSpan value. This is because the size limit of window magnification can easily trigger the end scale, leading to the zoom out having little effect. Solution is creating a new construct on android.view.ScaleGestureDetector and set the minSpan to zero.In this way, pinch zoom can work completely on the entire magnification window. Bug: 295327792 Test: manual Change-Id: I0afb5021221a7bf00cc1a16299a951f76dd62317
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions