commit | e01e7fe64089d3998a762e254bd3ffc1a882a671 | [log] [tgz] |
---|---|---|
author | Tommy C. Li <tommycli@chromium.org> | Wed Apr 17 18:49:08 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Apr 17 18:49:08 2019 |
tree | 4e560b3e000cb6aa42aebf93189bec6fcde9993e | |
parent | aac5a6823905c1d0c8d2c946e2adb73ee2aa7ff9 [diff] |
Omnibox: After unelision, ignore tiny drags until mouseup Right now, when the user double-clicks a word within an elided URL, we trigger unelision on the second mousedown. During unelision, the text shifts. If the mouse moves at all during the second mouseup, the selection may change unexpectedly. This is ordinarily not a problem, but since the text has shifted underneath the user, even tiny mouse movements can cause large selection changes. This CL fixes that by applying a minimum threshold to any drag movements (8px). Any drag movements smaller than that are ignored. This threshold is active until mouseup. Bug: 951447 Change-Id: I584b827e408e2d03e20d76bb0bd3b038e193e80c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1570571 Commit-Queue: Tommy Li <tommycli@chromium.org> Reviewed-by: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#651829}
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 .