Fix small scroll deltas in synthetic gestures
SyntheticGestureTargetAura::GetTouchSlopInDips was subtracting 1 from the slop configuration value. However, GestureDetector::IsWithinTouchSlop would incorrectly return true if we scrolled one pixel past the slop in this case. Additionally, there's no need to ceil the touch slop adjustment in SyntheticSmoothMoveGesture since we're sending float deltas. Bug: 897520 Change-Id: I35725c603910b3c694d9eddf5fde31f1f6b9cf2e Reviewed-on: https://chromium-review.googlesource.com/c/1293171Reviewed-by:Quinten Yearsley <qyearsley@chromium.org> Reviewed-by:
Dave Tapuska <dtapuska@chromium.org> Reviewed-by:
Sahel Sharify <sahel@chromium.org> Commit-Queue: David Bokan <bokan@chromium.org> Cr-Commit-Position: refs/heads/master@{#602458}
Showing
Please register or sign in to comment