Don't use the touch rect when targetting above the touch handles
commit9a8aabd750733342d5d027be868754f25956a757
authorjdduke <jdduke@chromium.org>
Thu, 20 Aug 2015 00:11:17 +0000 (19 17:11 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 20 Aug 2015 00:12:18 +0000 (20 00:12 +0000)
tree31e8f4fa0fbc203fbc11dcd80f7fd8e3efaae73a
parent33b30bb9c715a13874b73f73c12291bda35c1148
Don't use the touch rect when targetting above the touch handles

The touch selection handles are positioned below the selected line of
text. Currently, we use the touch radius to make targetting the handles
easier, but this can make it difficult for the user to interact with the
selected line of text, e.g., to reposition the cursor by tapping.

Fix this by not preventing the handles from consuming touches that are
strictly above the touch handle region.

BUG=522250

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

Cr-Commit-Position: refs/heads/master@{#344374}
ui/touch_selection/touch_handle.cc
ui/touch_selection/touch_handle_unittest.cc