Issue metadata
Sign in to add a comment
|
Scroll position changes when element is appearing
Reported by
mich...@maestrooo.com,
Jan 26 2017
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.76 Safari/537.36 Steps to reproduce the problem: 1. Open this fiddle: https://jsfiddle.net/he5p2xf1/ 2. Scroll until the image is half hidden. 3. Hover the image. What is the expected behavior? The element that is slide up using jQuery should just reveal without moving the scroll position. Works this way in older versions of Chrome and all other browsers. What went wrong? The whole page is scrolled, leading to a very strange user experience. Did this work before? Yes 55 Does this work in other browsers? Yes Chrome version: 56.0.2924.76 Channel: stable OS Version: OS X 10.12.3 Flash Version: Shockwave Flash 24.0 r0
,
Jan 26 2017
Looks like issues appears due to enabled scroll anchoring. Assigning to the Cl owner, as per the bisect. https://chromium.googlesource.com/chromium/src/+/6d380ba3ab246a15d6269a75328f481336b53ee1
,
Jan 26 2017
,
Jan 26 2017
This is working as intended per scroll anchoring design (https://github.com/WICG/ScrollAnchoring/blob/master/explainer.md). We anchor to the .collection-item <div> because it is the first visible thing in the DOM, so when it moves we adjust the scroll position to compensate. You can prevent anchoring to this div in CSS as follows: .collection-item { overflow-anchor: none; }
,
Jan 27 2017
I can confirm that overflow-anchor does the trick. Thanks!
,
Feb 1 2017
Issue 687118 has been merged into this issue. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by woxxom@gmail.com
, Jan 26 2017