This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Android] Prevent touch interception for browser-consumed touches
Browser-based widgets that overlay content have a shot at consuming touch events, e.g., selection handles. Such touches are reported as consumed to the View chain, however, embedding apps still have the opportunity to intercept those touch sequences. This can lead to double-handling, e.g., when dragging a selection handle left or right and triggering a View side swipe. Prevent this by calling requestDisallowInterceptTouchEvent() for touches that are consumed by such browser-based widgets. Note that we cannot call this method for all touch events as touch dispatch is often asynchronous and the disposition of the touch handling result cannot be immediately known when the touch is received from the Android platform. BUG=489337 Review URL: https://codereview.chromium.org/1140693004 Cr-Commit-Position: refs/heads/master@{#330426} (cherry picked from commit 3908325) Review URL: https://codereview.chromium.org/1145263002 Cr-Commit-Position: refs/branch-heads/2403@{#32} Cr-Branched-From: f54b809-refs/heads/master@{#330231}
- Loading branch information
Jared Duke
committed
May 20, 2015
1 parent
075ec5a
commit 225f25b
Showing
5 changed files
with
44 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters