Commit d85e91ca authored by Katie D's avatar Katie D Committed by Commit Bot

Autoclick can start gesture timer when mouse leaves scroll button.

This fixes a bug where users feel like it's hard to hit the close
button within the scroll pad.

Bug: 984669
Change-Id: I6f241afc011a1e713e74c87f00dba364fe895fd8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715549
Auto-Submit: Katie Dektar <katie@chromium.org>
Commit-Queue: Anastasia Helfinstein <anastasi@google.com>
Reviewed-by: default avatarAnastasia Helfinstein <anastasi@google.com>
Cr-Commit-Position: refs/heads/master@{#680476}
parent 86cabf47
...@@ -261,6 +261,9 @@ void AutoclickController::OnEnteredScrollButton() { ...@@ -261,6 +261,9 @@ void AutoclickController::OnEnteredScrollButton() {
void AutoclickController::OnExitedScrollButton() { void AutoclickController::OnExitedScrollButton() {
over_scroll_button_ = false; over_scroll_button_ = false;
// Reset the anchor_location_ so that gestures could begin immediately.
anchor_location_ = gfx::Point(-kDefaultAutoclickMovementThreshold,
-kDefaultAutoclickMovementThreshold);
} }
void AutoclickController::OnAutoclickScrollableBoundsFound( void AutoclickController::OnAutoclickScrollableBoundsFound(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment