scroll-behavior: smooth does not work for multiple elements |
||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36 Steps to reproduce the problem: 1. Have a nested scrolling div in the page with CSS scroll-behavior: smooth specified. 2. Call element.scrollIntoView() on an element within that smooth-scrolling div. 3. Simultaneously, call element.scrollIntoView() on an element outside of that smooth-scrolling div. An example of this is: http://peteblois.github.io/tmp/smooth_scroll_focus/ What is the expected behavior? The scrolling containers for both elements for which scrollIntoView is called should scroll into view. Clicking 'smooth' link should smoothly scroll the right-hand side to the element. What went wrong? Clicking the 'smooth' link does not scroll the right-hand side. But the instant scrolling still works. Did this work before? N/A Does this work in other browsers? N/A Chrome version: 65.0.3325.181 Channel: stable OS Version: Flash Version:
,
Apr 17 2018
Able to reproduce the issue on Windows 10, mac 10.13.3 and Ubuntu 14.04 using chrome reported version #65.0.3325.181 and latest canary #68.0.3397.0. Bisect Information: ===================== Good build: 61.0.3135.0 Bad Build : 61.0.3136.0 Change Log URL: https://chromium.googlesource.com/chromium/src/+log/436ccfe33a1747eb5e4d4b9ed948d498d560bf19..0e2afe148b2aea0aaef135379d01b1df986be46c From the above change log suspecting below change Review-Url: https://codereview.chromium.org/2938373003 sunyunjia@ - Could you please check whether this is caused with respect to your change, if not please help us in assigning it to the right owner. Thanks...!!
,
Aug 24
Not a regression since the highlighted patch is the one that turned on smooth scrolling. sunyunjia@, could you triage this. I know we explicitly kill any ongoing animation when we try to perform another one but perhaps that's per-spec.
,
Nov 21
,
Nov 25
I'll also experienced this issue. Firefox doesn't appear to cancel existing smooth scrolling. Is this a spec issue?
,
Dec 7
,
Jan 3
,
Jan 17
(5 days ago)
Issue 884123 has been merged into this issue. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by krajshree@chromium.org
, Apr 17 2018