Skip to content

Conversation

@petrfalkovsky
Copy link
Contributor

Resolves #471

Synopsis

Messenger Gapopa. Chat page. Scroll in chat.

To do: save scroll position when re-entering chat.

For example: open chat and scroll, after that go to any otherr page or a different chat, then go back to the chat and make sure that the scroll stays exactly the same as it was when leaving the chat.

Solution

Save the ID and offset of the top/bottom element in chat and reuse it. There should be no persist, since remembering the position is not required.

Checklist

  • Created PR:

    • In draft mode
    • Name contains issue reference
    • Has type and k:: labels applied
  • Before review:

    • Documentation is updated (if required)
    • Tests are updated (if required)
    • Changes conform code style
    • CHANGELOG entry is added (if required)
    • FCM (final commit message) is posted or updated
    • Draft mode is removed
  • Review is completed and changes are approved

    • FCM (final commit message) is approved
  • Before merge:

    • Milestone is set
    • PR's name and description are correct and up-to-date
    • All temporary labels are removed

@petrfalkovsky petrfalkovsky force-pushed the 471-keep-chat-scroll-position-when-leaving-and-re-entering-it branch from ba013e4 to e502dd4 Compare September 29, 2025 23:10
@SleepySquash SleepySquash added this to the 0.7.0 milestone Oct 6, 2025
@SleepySquash SleepySquash modified the milestones: 0.6.6, 0.7.0 Oct 13, 2025
@SleepySquash SleepySquash modified the milestones: 0.6.7, 0.7.0, 0.6.8 Oct 29, 2025
@SleepySquash SleepySquash modified the milestones: 0.6.9, 0.7.0, 0.6.10 Nov 11, 2025
@SleepySquash SleepySquash modified the milestones: 0.6.11, 0.7.0 Nov 24, 2025
@SleepySquash SleepySquash modified the milestones: 0.6.12, 0.7.0 Dec 1, 2025
@SleepySquash SleepySquash modified the milestones: 0.6.13, 0.7.0 Dec 8, 2025
@SleepySquash SleepySquash modified the milestones: 0.6.14, 0.7.0, 0.8.0 Dec 19, 2025
@SleepySquash SleepySquash modified the milestones: 0.7.1, 0.8.0, 0.7.2 Jan 7, 2026
@SleepySquash SleepySquash modified the milestones: 0.8.0, 0.9.0 Jan 21, 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.

[$160] Keep Chat scroll position when leaving and re-entering it

2 participants