7

There's new behavior on SO, MSO, and here on MSE that is extremely jarring: When you type a comment and press Enter, the page is scrolled so the comment is at the very top, e.g.:

I'm writing a comment:

enter image description here

And when I press Enter:

enter image description here

I've replicated it in Chrome and Firefox (both on Linux). This is new, it didn't do this yesterday.

There seem to be other scenarios where interacting with comments makes the page jump unpleasantly as well. What I've found so far *(please add to this list if you find new ones):

  • Posting a comment
  • Clicking the link to show comments when they aren't showing (e.g., someone comments when you're looking at something, and you want to see it)

Could we restore the old behavior of not scrolling if not necessary, please?

  • Happens when you "show more comments", too. – a CVn Nov 23 '15 at 13:38
  • 2
    should be less jarring now – Marc Gravell Nov 23 '15 at 13:57
6

That was an unintended and unforeseen consequence of a related change; entirely my bad; fixing...

| improve this answer | |
  • Lemme guess: Browsers are trying to move those elements into the view because they're being animated? – Cerbrus Nov 23 '15 at 13:42
  • Yikes! Posting this comment also made it scroll ^. – Cerbrus Nov 23 '15 at 13:43
  • Seems like on a question marked as a Dupe you're saying that this is intended behaviour of the Show More Comments link? Is that behaviour staying then? (Edit: nevermind, just seen your answer on this cross site-dupe - will await the further discussion...) – James Thorpe Nov 23 '15 at 13:44
  • @James when adding: unintentional; when expanding: intentional - however, I'm disabling it for now – Marc Gravell Nov 23 '15 at 13:48
  • 6
    Yeah, I really wouldn't want it for expanding, either. In general, really, I prefer my page scroll to be under my control, and any scrolling done by a site should only be to reveal an element I asked for that isn't visible. – T.J. Crowder Nov 23 '15 at 13:52
  • 2
    It has got to be nerve-wracking to do live edits on a site like SO. :-) Kudos to you, Marc. – T.J. Crowder Nov 23 '15 at 14:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .