New issue
Advanced search Search tips

Issue 889145 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

ScrollTop returns incorrect value when another scrolling div is synching with this div's position

Reported by utsav.sb...@gmail.com, Sep 25

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Steps to reproduce the problem:
1. Create a div with scrolling behavior (any direction)
2. Add lots of rows/columns to the div
3. Create another div with same behavior
4. Attach scrolling listener to both divs, so that if one div moves we can synch another div's scroll position to same value.
5. Print their scroll positions in console
5. scroll any one div quickly to the top in a way that it will hit the top (or any other direction) 
6. The scroll stops at 0 position, and yet it returns last scrolling position with some positive value
7. This causes other div to misalign as it synchs own scroll position to the incorrect value returned by first div.
7. The issue goes away if i move my chrome browser to another external display (Dell Ultrasharp U3415W) that is attached to my laptop. 
8. Issue is not reproducible with other browsers.

JSFiddle: http://jsfiddle.net/89q5ok61/
issue GIF: https://imgur.com/a/mWeyAnn
non-isse GIF: https://imgur.com/a/s8jtvq5

Device details:
MacOS Sierra 10.12.6 (16G1408)
MacBook Pro (13-inch, 2016, Two Thunderbolt 3 ports)
processor: 2.4 GHz Intel Core i7
Memory: 16 GB 1867 MHz LPDDR3
Graphics: Intel Iris Graphics 540 1536 MB

What is the expected behavior?
The scrollTop/Left should return correct values as UI

What went wrong?
The scrollTop of one div didnt return the correct value, so another div that was syncing it's scroll position based on the first one, didnt align correctly.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 69.0.3497.100  Channel: stable
OS Version: OS X 10.12.6
Flash Version:
 
Labels: Needs-Triage-M69
Cc: viswa.karala@chromium.org
Labels: Triaged-ET Needs-Feedback
Unable to reproduce the issue on chrome reported version# 69.0.3497.100 using Mac 10.12.6 with steps mentioned below:
1) Launched chrome reported version and opened the URL: http://jsfiddle.net/89q5ok61/
2) Scrolled the left side Div, seen both the Div's(left and right) moving in same position
3) Scrolled the left Div to the top way in the way that it hit the top, seen the right side Div also in the same position.

@Reporter: Please find the attached screencast for your reference and let us know if we missed anything in reproducing the issue, try to test this issue by creating new person with no apps and extensions in it and let us know if the issue still persists.

Thanks!
889145.mp4
2.9 MB View Download
Cc: bokan@chromium.org
Status: Available (was: Unconfirmed)
I can also repro the issue with touchpad scrolling on Mac.
Dave, I believe we had another bug that was mentioning not receiving the last scroll event even though document was scrolled. I couldn't fine it though. Do you know that bug?
Labels: -Pri-2 Pri-3
Sorry, I haven't seen it.
@Viswa, when I am connected to an external monitor (same laptop, chrome version) and move my chrome to the external display window, it works fine (Just mentioning it, in case you were testing it similarly.)

Sign in to add a comment