Page MenuHomePhabricator

Scrolling to a topic that is not loaded yet causes the screen to scroll down to it and then right back up again
Open, MediumPublic

Description

To reproduce:

  1. Create (or go to) a board with many many topics. My test page had almost 40 topics.
  2. While still at the top of the page, open the TOC and scroll it to the bottom, pick a topic towards the end
  3. Observe: the page scrolls to the right topic but then scrolls up a page, requiring the user to scroll down again to see the requested topic

Firefox 37.0.2 and Chrome 42.0.2311.135

Event Timeline

Mooeypoo raised the priority of this task from to Needs Triage.
Mooeypoo updated the task description. (Show Details)
Mooeypoo subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This is because not all the topics in between are loaded: it only loads a couple of topics around the one you want to look & leaves gaps in between. As you scroll up, those gaps would also be loaded.

However, it seems we have a bug in there. The first time I just tested, the topic I clicked was added slightly too low, prompting the above gap to load the missing topics & cause scrolling (after that, I tried reproducing it 20+ times and it worked fine every single time, then)

Also: when it does load a gap above, it probably shouldn't stay on the position of the page where new topics were just inserted, but rather jump back to the end of the newly inserted topics (where the topic you scrolled up from still is) - we never really implemented that.

It's true we never fully implemented smooth upwards scrolling. However, this scenario "click on non-loaded topic and end up there" was working before.

DannyH triaged this task as Medium priority.May 8 2015, 8:41 PM
DannyH subscribed.

I'm getting the bug even when I'm only scrolling down. I choose a topic, go to that topic, everything's fine. Then I scroll down, and the previous 10 topics loads, and my view jumps up.