summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Ikram Gabiyev <gabiyev@google.com> 2024-05-14 15:31:38 -0700
committer Ikram Gabiyev <gabiyev@google.com> 2024-05-16 15:51:47 +0000
commitd7f886019bf461df9d255ce85986ed5ec0a880aa (patch)
tree417a1a14e8db13f100fbffdd74827f2072ab3b80 /libs/input/PointerController.cpp
parent256196a191ee50491254d1993bb59c1e4c046d48 (diff)
Cap scale when swiping to PiP
If the source rect hint is off by a couple pixels from the app bounds we run a different scale-crop animation than to when it perfectly fits the screen along one axis. We need to make sure that in cases such as this one, we do not go over scale=1.0 in any case. Since this path is only triggered when source-rect-hint is valid and larger than the destination bounds, such assumption should be safe. Recordings: Folded: http://recall/-/BSXDRqFG6tqOB9EtbTyBy/NPnVIYg77S7d7Fjlm9zol Unfolded: http://recall/-/BSXDRqFG6tqOB9EtbTyBy/ekZHmCyApxeHf7X9RNOpXI Flag: N/A Bug: 340024197 Test: repro the steps in the bug report Change-Id: I2a9012511b7567ef4d08aa60de8b1a9992f99c58 (cherry picked from commit d2e8dfa37b7cb9cae5261889bcffedd2c7570ef4)
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions