DescriptionMake extensions icons easier to target with gestures
The bounds of a BrowserActionView and the bounds
of its child view |button_| have the following
properties:
- Both share a common center point.
- The bounds of |button_| are square, but the
bounds of BAV are not.
- The bounds of |button_| are contained within
the bounds of BAV.
- Both are small enough to be easily covered
by a finger.
This is a flaw in rect-based targeting
making it difficult to correctly target
|button_| with a tap gesture. To obtain the
desired behavior, use the distance
between the center of the touch and the center
of the view (instead of the center line of
the view) to break ties among rect-based
targeting candidates.
The use of the distance to center line was
to avoid biases against wide or tall views.
But this is not necessary because any view
which can have at least 60% of its area
covered by a touch cannot be sufficiently wide
or tall enough to benefit from such a metric.
BUG=328182
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241955
Patch Set 1 #
Total comments: 2
Patch Set 2 : Revised patch #Patch Set 3 : Revised patch #Patch Set 4 : More test coverage added #Patch Set 5 : remove newline #
Messages
Total messages: 11 (0 generated)
|