Commit bcc1b2d3 authored by sadrul@chromium.org's avatar sadrul@chromium.org

views: Mark a tap-down as handled only if scrolling was actually stopped.

BUG=168005

Review URL: https://codereview.chromium.org/11740006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175372 0039d316-1c4b-4281-b951-d872f2087c98
parent 8d2d7791
...@@ -281,7 +281,10 @@ void SubmenuView::OnGestureEvent(ui::GestureEvent* event) { ...@@ -281,7 +281,10 @@ void SubmenuView::OnGestureEvent(ui::GestureEvent* event) {
break; break;
case ui::ET_GESTURE_TAP_DOWN: case ui::ET_GESTURE_TAP_DOWN:
case ui::ET_SCROLL_FLING_CANCEL: case ui::ET_SCROLL_FLING_CANCEL:
scroll_animator_->Stop(); if (scroll_animator_->is_scrolling())
scroll_animator_->Stop();
else
handled = false;
break; break;
default: default:
handled = false; handled = false;
......
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