fix: より古いメッセージを新たに読み込んだとき、スクロール位置が下にずれてしまう問題を修正 #4977
Merged
+16
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要
メッセージ読み込み直後, MessagesScroller.vue の watch によるスクロール位置調整が行われているとき、useMessageScrollerElementResizeObserver.ts による位置調整を無効化することで、別々の場所でレイアウト調整が同時に行われることを防ぐ
なぜこの PR を入れたいのか
close #4976
動作確認の手順
UI 変更部分のスクリーンショット
before
after
PR を出す前の確認事項
見てほしいところ・聞きたいことなど
画像がたくさん投稿されたチャンネルで問題がなさそうなことを確認した
問題が起きていない下方向へのスクロールについては、正しい挙動を維持できていそう
他のバグを引き起こしていないか確かめる必要がある