Fix spin button capture and change events.
Spin button was setting capturing_ bit on mouse hover, and clear it on either mouse up or mouse move but not hover it. It's different from all other capture behavior, and it causes a bug that capturing_ bit will not be set to true again when click again without move mouse. This CL changes the spin button to set capture on mouse down instead of mouse move (which is align with other capture behavior such as slider thumb element) This CL also changes spin button element capturing to using set/releasePointerCapture api instead of the old method. Bug: 748073, 919908 Change-Id: I9c501e0b60501707d15f39a5be5efb4e8e12c620 Reviewed-on: https://chromium-review.googlesource.com/c/1432332Reviewed-by:Kent Tamura <tkent@chromium.org> Reviewed-by:
Navid Zolghadr <nzolghadr@chromium.org> Reviewed-by:
Keishi Hattori <keishi@chromium.org> Commit-Queue: Ella Ge <eirage@chromium.org> Cr-Commit-Position: refs/heads/master@{#627009}
Showing
Please register or sign in to comment