Commit 2ebb347f authored by Matt Jones's avatar Matt Jones Committed by Commit Bot

Ignore gestures on the scrim if hiding or hidden

Bug: 1108731
Change-Id: Ibbf6c03ad6c068c90ab356008c68878cb3d6604f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2316319Reviewed-by: default avatarTheresa  <twellington@chromium.org>
Commit-Queue: Matthew Jones <mdjones@chromium.org>
Cr-Commit-Position: refs/heads/master@{#791287}
parent 694a2237
......@@ -215,6 +215,7 @@ class ScrimMediator implements View.OnClickListener, ScrimCoordinator.TouchEvent
@Override
public boolean onTouchEvent(MotionEvent e) {
if (mIsHidingOrHidden) return false;
if (!mModel.getAllSetProperties().contains(ScrimProperties.GESTURE_DETECTOR)) return false;
// Make sure the first event that goes through the filter is an ACTION_DOWN, even in the
......
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