New issue
Advanced search Search tips

Issue 863179 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: 2018-07-30
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

scrollIntoViewIfNeeded looks working inaccurate when initial scale is >1

Project Member Reported by gogerald@chromium.org, Jul 12

Issue description

I am using this interface 'scrollIntoViewIfNeeded (https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/dom/element.h?rcl=3e44f3be427bb7222e8e20640e261d620478e8bc&l=263)' to scroll an element into view, but the scroll is not enough when 'initial-scale' > 1 in my test page. It used work.

Hi tkent@ and hayato@, find you name in OWNERS file, could you help confirm this?




 
Cc: -hayato@chromium.org bokan@chromium.org
Components: Blink>Layout Blink>Scroll
Owner: ----
Both of hayato@ and me are not familiar with it.
I think bokan@ or layout team know something.

Labels: -Pri-1 Needs-Feedback Pri-3
Do you have a test case or demo of it not working as expected?
Cc: sunyunjia@chromium.org
NextAction: 2018-07-30
The NextAction date has arrived: 2018-07-30
Labels: -Restrict-View-Google -Needs-Feedback Needs-Bisect
Owner: bokan@chromium.org
Status: Assigned (was: Untriaged)
Confirmed - steps:

1) Open DevTools and enable mobile emulation (e.g. Pixel 2) or just us a real device.
2) Visit http://bokand.github.io/bugs/863179.html
3) Click/Tap on the button

Expected: Red box appears in the middle of the viewport

Actual: Scrolls to seemingly random place

I suspect we're scrolling just the layout viewport.

A bisect would be helpful here. 
Any updates here?
No, sorry, this is fairly low priority so I'm unlikely to get to it anytime soon.

Sign in to add a comment