New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 593186 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome
Pri: 1
Type: Bug-Regression



Sign in to add a comment

horizontal smooth scroll goes to wrong position in RTL documents

Project Member Reported by skobes@chromium.org, Mar 9 2016

Issue description

What steps will reproduce the problem?
1. Visit https://output.jsbin.com/mimage/quiet on Windows, Linux, or ChromeOS.
2. Click the left arrow button on the horizontal scrollbar.

What is the expected result?
Scroll one step to the left.

What happens instead of that?
Scroll jumps all the way to the left.

This is caused by ScrollAnimator not accounting for RTL scroll origin correctly.  It does not reproduce with --disable-smooth-scrolling.
 
Status: Fixed (was: Started)
This issue is fixed by http://crrev.com/379974.
Labels: Merge-Request-50 M-50 Merge-Request-49
This breaks scrolling on any RTL page with a horizontal scrollbar.  Workarounds are to drag the scrollbar thumb, or to disable smooth scrolling in about:flags.

Requesting merge to M49 and M50.
Labels: ReleaseBlock-Stable
Status: Started (was: Fixed)
Verified in canary (51.0.2672.0).
Cc: skobes@chromium.org
 Issue 592095  has been merged into this issue.

Comment 7 by tin...@google.com, Mar 10 2016

Labels: -Merge-Request-50 Merge-Approved-50 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M50 (branch: 2661)

Comment 8 by tin...@google.com, Mar 10 2016

Labels: -Merge-Request-49 Merge-Review-49 Hotlist-Merge-Review
[Automated comment] Request affecting a post-stable build (M49), manual review required.

Comment 9 by gov...@chromium.org, Mar 10 2016

Please try to merge your change to M50 branch 2661 ASAP if you think it is a safe merge as we're very close to M50 Beta candidate cut. Thank you.
Labels: -Merge-Review-49 Merge-Approved-49
Merge approved for M49 (branch 2623)
Project Member

Comment 11 by bugdroid1@chromium.org, Mar 10 2016

Labels: -merge-approved-49 merge-merged-2623
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/a99a391f699f0f5d15f3c249dc404a84d6f3bde1

commit a99a391f699f0f5d15f3c249dc404a84d6f3bde1
Author: Steve Kobes <skobes@chromium.org>
Date: Thu Mar 10 19:31:47 2016

Fix botched merge in http://crrev.com/984e315.

BUG= 593186 
TBR=szager

Review URL: https://codereview.chromium.org/1782963003 .

Cr-Commit-Position: refs/branch-heads/2623@{#610}
Cr-Branched-From: 92d77538a86529ca35f9220bd3cd512cbea1f086-refs/heads/master@{#369907}

[modify] https://crrev.com/a99a391f699f0f5d15f3c249dc404a84d6f3bde1/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h

Project Member

Comment 12 by bugdroid1@chromium.org, Mar 10 2016

Labels: -merge-approved-50 merge-merged-2661
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/484078e368c1718cc3b1508931eb6b9f5e561fd5

commit 484078e368c1718cc3b1508931eb6b9f5e561fd5
Author: Steve Kobes <skobes@chromium.org>
Date: Thu Mar 10 19:40:18 2016

Account for scroll origin in scroll animators.

Blink and cc have different notions of scroll offset - Blink's is relative to
the scroll origin which is non-zero in RTL documents.

The CompositorScrollOffsetAnimationCurve must work entirely in cc scroll offsets
since it is handed over to cc which doesn't know about the scroll origin.

This patch teaches ScrollAnimator and ProgrammaticScrollAnimator to convert in
both directions when creating and using the curve object.

BUG= 593186 

Review URL: https://codereview.chromium.org/1776503002

Cr-Commit-Position: refs/heads/master@{#379974}
(cherry picked from commit 0bb16600006793953292ee1e7fd8bf0a66f575dc)

Review URL: https://codereview.chromium.org/1780993003 .

Cr-Commit-Position: refs/branch-heads/2661@{#183}
Cr-Branched-From: ef6f6ae5e4c96622286b563658d5cd62a6cf1197-refs/heads/master@{#378081}

[modify] https://crrev.com/484078e368c1718cc3b1508931eb6b9f5e561fd5/third_party/WebKit/LayoutTests/TestExpectations
[add] https://crrev.com/484078e368c1718cc3b1508931eb6b9f5e561fd5/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/smooth-scroll/horizontal-smooth-scroll-in-rtl-expected.txt
[add] https://crrev.com/484078e368c1718cc3b1508931eb6b9f5e561fd5/third_party/WebKit/LayoutTests/virtual/threaded/fast/scroll-behavior/smooth-scroll/horizontal-smooth-scroll-in-rtl.html
[modify] https://crrev.com/484078e368c1718cc3b1508931eb6b9f5e561fd5/third_party/WebKit/Source/platform/scroll/ProgrammaticScrollAnimator.cpp
[modify] https://crrev.com/484078e368c1718cc3b1508931eb6b9f5e561fd5/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
[modify] https://crrev.com/484078e368c1718cc3b1508931eb6b9f5e561fd5/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp
[modify] https://crrev.com/484078e368c1718cc3b1508931eb6b9f5e561fd5/third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.h

Project Member

Comment 13 by bugdroid1@chromium.org, Mar 10 2016

The following revision refers to this bug:
  https://chrome-internal.googlesource.com/bling/chromium.git/+/a99a391f699f0f5d15f3c249dc404a84d6f3bde1

commit a99a391f699f0f5d15f3c249dc404a84d6f3bde1
Author: Steve Kobes <skobes@chromium.org>
Date: Thu Mar 10 19:31:47 2016

Status: Fixed (was: Started)
Labels: TE-Verified-M50 TE-Verified-50.0.2661.37
Tested the issue on windows 7, Linux Ubuntu 14.04 using chrome version 50.0.2661.37.Scroll bar is moving step by step when clicking on left arrow.
Please find the attached screen cast for the same.

Adding TE-Verified label.
593186.mp4
1.0 MB Download

Sign in to add a comment