commit | bcca8d4a2b5164aecdfa039c29a065a832ab50af | [log] [tgz] |
---|---|---|
author | Tommy C. Li <tommycli@chromium.org> | Thu Mar 08 17:38:51 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Mar 08 17:38:51 2018 |
tree | ed32b16f704354557c260a0f6c21f49bd8186f9d | |
parent | f6009cbd4461f483af77655448a896e68ae5f6cb [diff] |
Views: Make double/triple click work better for moving Labels/Textfields We currently track double and triple clicks' last click locations, and prevent them from aggregating and "counting" as a double/triple click if the user has moved the mouse a delta exceeding the drag threshold. This is currently problematic for Views that move as a result of a click, as we are tracking the location() with respect to the local View. This CL makes the location stored track the root_location(), which is likely closer to what the user expects, since we don't care if the local View moves with respect to the mouse, but rather if the mouse moves in an absolute sense. This also fixes triple-click for Steady State Elisions in Omnibox UI. Bug: 797354 Change-Id: Ie29a5f61fa6ae7292dcdf854f1ace2935a640e31 Reviewed-on: https://chromium-review.googlesource.com/954014 Reviewed-by: Michael Wasserman <msw@chromium.org> Commit-Queue: Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#541826}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .