commit | b7c0f3c38689e9a57ee55c860531ace96e988a89 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Wed Mar 15 17:21:57 2023 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Fri Mar 17 13:30:59 2023 -0700 |
tree | c4557c8e5f371a3da4e191628de5ec957282485c | |
parent | e74c24d6f423bb9313b4fdab911fbb0a35a0fdf1 [diff] |
Fixing overscroll getting lost due to float point comparision When swipping back from overscroll, deltaX becomes close-to-0 causing the equality check (deltaX != 0) to fail. This causes the overscroll to jump. Platform views like HorizontalScrollView use int instead of float to avoid this. Bug: 273828110 Test: Verified on device that the overscroll finishes smoothly Flag: N/A Change-Id: I140750a2bdc39cebcbeb8ea83bb38efb0449dd5a