Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed crash when scrolling up really fast. #4621

Merged
merged 2 commits into from
May 11, 2023

Conversation

Mm2PL
Copy link
Collaborator

@Mm2PL Mm2PL commented May 10, 2023

Description

This fixes a crash that happens if you happen to scroll up really fast in a fast chat like tmiloadtesting2. The scrollbar would want to be out of bounds, the message snapshot would be indexed out of bounds and Chatterino would segfault.

Old behavior:
https://github.com/Chatterino/chatterino2/assets/25011746/19580242-0c5d-4450-b062-ec1a32340d23

New one does not crash :).

@Mm2PL Mm2PL changed the title Fix a crash when scrolling up really fast in a channel Fixed crash when scrolling up really fast. May 10, 2023
@Felanbird Felanbird added this to the 2.4.4 milestone May 10, 2023
@Felanbird Felanbird added the Waiting for review PR bounced back to reviewer label May 10, 2023
@pajlada pajlada merged commit 1d4c6d5 into master May 11, 2023
@pajlada pajlada deleted the fix/fix_crash_when_scrolling_up_FAAAST branch May 11, 2023 16:05
@pajlada pajlada removed the Waiting for review PR bounced back to reviewer label May 11, 2023
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.

3 participants