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/954014Reviewed-by:Michael Wasserman <msw@chromium.org> Commit-Queue: Tommy Li <tommycli@chromium.org> Cr-Commit-Position: refs/heads/master@{#541826}
Showing
Please register or sign in to comment