jomaxro
(Joshua Rosenfeld)
2017 年 4 月 21 日午後 6:20
1
Contribute > Bug に投稿します。これは Discourse の通常の使用を妨げていると感じるためですが、Contribute > UX の方が適しているかもしれません。
内部サイト(リンクを共有できません)の 1 つで、トピックタイムラインが少しおかしいことに気づき、何が起きているのかを調べようと試行錯誤しました。本質的に、トピックタイムラインを使って最近の投稿(6 件中 5 件目や 6 件目など)に移動すると、投稿が期待通りにスクロールせず、スクロールした投稿が実際には表示されないという問題が発生します。この問題は Meta や Stonehearth、開発環境では再現できなかったため、サイト間の違いを調査し始めました。その結果、私のサイトでは「推奨トピック」が無効(suggested topics = 0)になっているのに対し、Meta、Stonehearth、開発環境では有効であることを発見しました。開発環境で推奨トピックを無効にすると、この問題を再現できました。
@eviltrout さん、トピックタイムラインのスクロール動作は、推奨トピックが存在することを前提としているのでしょうか?
問題の動画:
デフォルト(推奨トピック 5 件):
推奨トピック 0 件:
推奨トピック 20 件:
「いいね!」 3
eviltrout
(Robin Ward)
2017 年 4 月 21 日午後 6:32
2
It very well could be a bug! I’ll look into it.
「いいね!」 6
eviltrout
(Robin Ward)
2017 年 4 月 24 日午後 5:22
4
「いいね!」 5
eviltrout
(Robin Ward)
2017 年 4 月 27 日午後 4:22
7
I’m re-opening this for now. Unfortunately my fix broke scrolling on meta a bit so I reverted it. I’ll have to come up with a more robust solution.
「いいね!」 1
eviltrout
(Robin Ward)
2017 年 4 月 27 日午後 8:23
9
Okay, I think this fixes it for good. This is surprisingly complicated stuff to get right.
@jomaxro could you confirm it’s working for you?
https://github.com/discourse/discourse/commit/cb8f91ca215a5dc85a771b3691b334a89c54664a
「いいね!」 4
jomaxro
(Joshua Rosenfeld)
2017 年 4 月 27 日午後 8:24
10
Happy to test once this reaches tests_passed!
「いいね!」 1
jomaxro
(Joshua Rosenfeld)
2017 年 4 月 27 日午後 9:35
11
I hate to say this, but it’s “mostly” working. Just tested in the two topics I shared with you via PM. They both load correctly now (showing the last post) and using the timeline to go from a post to the last one work, but the timeline itself is very finicky.
Entering a fully read topic results in the browser being scrolled fully, but the timeline is not.
Also, moving via the timeline is incredibly jumpy. In topic 8022, moving the timeline to post 4 results in the timeline jumping to post 2 upon release. Post 3 also jumps to post 2. Post 5 jumps to post 6…etc.
Happy to change the password back if you’d like…
I would rather force everyone to use suggested topics rather than spend days of engineering effort on this unusual non-default settings scenario.
That said there are other places where suggested may not be there, such as PMs.