commit | 576b1e31d96ae200aab96ec4645aed2123b44941 | [log] [tgz] |
---|---|---|
author | AJITH KUMAR V <[email protected]> | Mon Jul 24 19:12:38 2017 |
committer | Commit Bot <[email protected]> | Mon Jul 24 19:12:38 2017 |
tree | 22429b1bad6168f6b7d12dfa1135cf19a820fff2 | |
parent | 9ed1431620c445d5e6c3551d34b8d282b360966f [diff] [blame] |
Fixing text selection handles getting appeared before finger release Alpha value for selection handle is not reset correctly during clearing of selection. This is making touch handle showing for a small duration. Clearing the visibility state of handles during selection clear, so that it will automatically set the alpha value to 0 during fade animation. Bug: 741682 Change-Id: I40d31e705637680bbe1cddaa9f857b7f4cca2324 Reviewed-on: https://chromium-review.googlesource.com/571210 Commit-Queue: AJITH KUMAR V <[email protected]> Reviewed-by: Mohsen Izadi <[email protected]> Cr-Commit-Position: refs/heads/master@{#489041}
diff --git a/ui/touch_selection/touch_handle.h b/ui/touch_selection/touch_handle.h index 5d581e5..3815fea 100644 --- a/ui/touch_selection/touch_handle.h +++ b/ui/touch_selection/touch_handle.h
@@ -122,6 +122,7 @@ const gfx::PointF& focus_bottom() const { return focus_bottom_; } TouchHandleOrientation orientation() const { return orientation_; } + float alpha() const { return alpha_; } private: gfx::PointF ComputeHandleOrigin() const;