# Scrolling through large topics with 'j' instead of mouse sometimes gets stuck

**URL:** https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686
**Category:** Bug
**Created:** [7월 1, 2016, 12:47오전 UTC](https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686 "2016-07-01T00:47:14Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [7월 1, 2016, 12:47오전 UTC](https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686/1 "2016-07-01T00:47:14Z")

</div>

My reason for coming into meta today.

Enter a large topic (\> 100 posts is good, but sometimes it happens on smaller topics). Read the topic and use j to move from post to post. Eventually the scrolling just stops. Right before that happens, the red bar to the side of the active post (for the purposes of j) disappears. This GIF shows it, with fast frame rates while it is working, and slow frame rates when it fails:

 ![](https://global.discourse-cdn.com/meta/original/3X/3/d/3de3f39a125b99e4fe94740172ffd55fb186be0a.gif)

When this happens, I can get it working again by scrolling down with my mouse wheel. I suspect that what I’m seeing is the mouse wheel scroll knows how to trigger the “load next batch of posts” javascript, while the j scroll does not.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [7월 1, 2016, 8:48오전 UTC](https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686/2 "2016-07-01T08:48:24Z")

</div>

I’m also an avid j/k user and have noticed this issue a while ago. @eviltrout is aware of it but unfortunately it’s very hard to reproduce.

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [7월 1, 2016, 6:16오후 UTC](https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686/3 "2016-07-01T18:16:00Z")

</div>

Nah, I found it super simple to reproduce in that particular 300+ post topic. Just start reading from the top. First stop for me was at 38, second at 58, and several more going down. I’m using Firefox (still 46 here) on Linux.

[https://meta.discourse.org/t/babble-a-chat-plugin/31753](https://meta.discourse.org/t/babble-a-chat-plugin/31753)

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [7월 1, 2016, 6:21오후 UTC](https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686/4 "2016-07-01T18:21:53Z")

</div>

Looks to be because it is failing to load more topics unless you move the scrollwheel on your mouse (or move the scrollbar up and down to trick it into loading more topics).

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [7월 1, 2016, 6:25오후 UTC](https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686/5 "2016-07-01T18:25:11Z")

</div>

Yes, that sounds like how I described it in the first post.

---

<div class="post-metadata">

### Author: ![elijah](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/elijah/32/104055_2.png) [@elijah](https://meta.discourse.org/u/elijah)
#### Post date: [7월 1, 2016, 10:45오후 UTC](https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686/6 "2016-07-01T22:45:40Z")

</div>

BTW, it seems particular to j, going the other way with k seems to work fine. And when j sticks, spacebar can unstick it.

---

<div class="post-metadata">

### Author: ![frictionel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frictionel/32/299701_2.png) [@frictionel](https://meta.discourse.org/u/frictionel)
#### Post date: [7월 3, 2016, 12:33오후 UTC](https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686/7 "2016-07-03T12:33:12Z")

</div>

I think it is related to this commit as it was okay before AFAIR:  
[https://github.com/discourse/discourse/commit/74a454c203a97468ee7d6772d107d9d0b9b341a1](https://github.com/discourse/discourse/commit/74a454c203a97468ee7d6772d107d9d0b9b341a1)

It’s not always happening because of the length of posts. I don’t know when Discourse is fetching the next batch of posts but when a long post is the last loaded one, then it may be too far down to trigger the load since the commit moved the current visible/selected post down a lot.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [7월 3, 2016, 10:06오후 UTC](https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686/8 "2016-07-03T22:06:02Z")

</div>

@eviltrout can you have a look?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [7월 4, 2016, 2:44오후 UTC](https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686/9 "2016-07-04T14:44:52Z")

</div>

I believe this is the bug that @zogstrip has seen. We are still working on getting a good repro. I’ve unfortunately _never_ been able to reproduce it locally.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [7월 4, 2016, 2:53오후 UTC](https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686/10 "2016-07-04T14:53:56Z")

</div>

I’ve been able to repro it here at meta - but not consistently.

I thought it might be small actions. or deleted, or whispers, or external oneboxed, but it doesn’t always happen in the same place.

Best I can guess is it has something to do with timing.

i.e. if I _rapidly_ scroll using j it will eventually get stuck. But if I j slowly (give the address bar time to update), it doesn’t.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [6월 2, 2017, 7:01오후 UTC](https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686/11 "2017-06-02T19:01:59Z")

</div>

I am unable to repro this anymore, so I am closing it. Just kept j pressed from the beginning till the end of the babble topic and no repro.

We need a clear way of reproducing this to address it.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [6월 2, 2017, 7:02오후 UTC](https://meta.discourse.org/t/scrolling-through-large-topics-with-j-instead-of-mouse-sometimes-gets-stuck/46686/12 "2017-06-02T19:02:02Z")

</div>


