commit | ac9016aaf7f06e98d139fb1bfcd6d022cc41f2b4 | [log] [tgz] |
---|---|---|
author | Jordan Demeulenaere <jdemeulenaere@google.com> | Fri Jan 26 10:36:13 2024 +0100 |
committer | Jordan Demeulenaere <jdemeulenaere@google.com> | Fri Jan 26 11:07:51 2024 +0100 |
tree | 2c0ac456d4251b3d98a5503dac9d048c1adb0bb7 | |
parent | fb2738a273b3d4c6c392356939c510df4f5fbf98 [diff] |
Fix regression in SceneGestureHandler This CL fixes a crash introduced in ag/25994973: if the user drags its finger by the exact same amount as the touch slop, then the overSlop will be 0f and we won't be able to compute in which direction the user is dragging. This CL makes sure that the overSlop is not 0f, unless we are intercepting a current swipe transition. Bug: 291053278 Test: SwipeToSceneTest Flag: N/A Change-Id: Ia99a388a6d177fa706cc066d4a9223b8efa919dd