Commit 012b8a8c authored by Kevin Strohbehn's avatar Kevin Strohbehn Committed by Commit Bot

Prevents down scrolls in mid-home-gesture event from being ignored

Bug: 896790
Change-Id: I8fef79fbbd3790d344ad92170f506fe46feefdd6
Reviewed-on: https://chromium-review.googlesource.com/c/1308600Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Kevin Strohbehn <ginko@google.com>
Cr-Commit-Position: refs/heads/master@{#604056}
parent 2c9e535f
...@@ -1194,8 +1194,9 @@ bool ShelfLayoutManager::ShouldHomeGestureHandleEvent(float scroll_y) const { ...@@ -1194,8 +1194,9 @@ bool ShelfLayoutManager::ShouldHomeGestureHandleEvent(float scroll_y) const {
if (!IsVisible()) if (!IsVisible())
return false; return false;
// Scroll down events should never be handled. // Scroll down events should never be handled, unless they are currently being
if (scroll_y >= 0) // handled
if (scroll_y >= 0 && gesture_drag_status_ != GESTURE_DRAG_APPLIST_IN_PROGRESS)
return false; return false;
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment