[scroll anchoring] facebook messages page doesn't stick to bottom |
||||
Issue description1. Log into facebook.com 2. Go to https://www.facebook.com/messages 3. Open a long conversation The conversation is initially scrolled to the bottom but jumps up by some distance within the first second of loading. It jumps up again on every new incoming message. Repros at ToT and correlated with scroll anchoring.
,
Nov 30 2016
I think this might have to do with shared links in the thread. This only reprod for me when I sent my test user a link https://www.google.com, after the preview loads it broke scroll anchoring. Chat windows are really hard places to get scroll anchoring right. One thing that would be really helpful is to make sure that if the window is scrolled to the bottom it always stays scrolled to the bottom. It's an area where we'd probably want to explore new apis so that sites like ours could express our needs.
,
Dec 1 2016
I think the best fix on the Facebook side would be to put "overflow-anchor: none" on the #webMessengerRecentMessages element. The problematic scroll adjustments occur when content is added to this element, causing it to grow upward due to an absolute-positioned container with "bottom: 0". We could add a special case for this in the scroll anchoring algorithm but I'd prefer not to do that as it is pretty specific to the details of Facebook's infinite scroller implementation.
,
Jan 11 2017
,
Feb 3 2017
This no longer repros on Facebook's new messages page. :) |
||||
►
Sign in to add a comment |
||||
Comment 1 by skobes@chromium.org
, Nov 30 2016Status: Started (was: Assigned)