Fast upward swipe should show hotseat
When deciding final hotseat position, give the last drag velocity precedence over last hotseat position, so short upward flings (which are not long enough to move hotseat up by half of its length) still move the hotseat to the extended state. This was previously flipped in CL:1870051 because last_drag_velocity_ had upward value while dragging down to the bezel - the likely cause of this issue is last_drag_velocity_ not being reset when completing drag handling, so in cases where drag handling does not encounter ET_SCROLL_FLING_START (which might happen if drag exits the screen bounds), last_drag_velocity_ from the previous drag would be used. The described issue is fixed as part of this cl. BUG=1035024 Change-Id: I246121d84820fd3c633753b1d4d01dad0e323ac3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1983268Reviewed-by:Alex Newcomer <newcomer@chromium.org> Reviewed-by:
Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Toni Baržić <tbarzic@chromium.org> Cr-Commit-Position: refs/heads/master@{#728215}
Showing
Please register or sign in to comment