Skip to content

fix: scroll to the clicked category when leaving gif mode - #8265

Closed
dclstn wants to merge 1 commit into
masterfrom
fix/gif-mode-section-scroll
Closed

dclstn wants to merge 1 commit into
masterfrom
fix/gif-mode-section-scroll

Conversation

@dclstn

@dclstn dclstn commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

In GIF mode the emote list is unmounted, so a sidebar category click did setMode(EMOTES) and then handleScrollToPendingRow in the same tick, which found no list element and dropped the scroll. The mode switched and the category highlighted, but the list rendered at the top.

The row index is now kept while the list is unmounted and applied in a layout effect once the mode returns to emotes.

Verified live on kaicenat's chat: GIF tab open, click the 7TV sidebar icon, list lands on 7TV Global. Before the change the same click left the list at Frequently Used.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@dclstn dclstn closed this Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant