Skip to content

Fix an OverflowError during rapid kinetic scrolling#47

Merged
fedelibre merged 1 commit intomasterfrom
fix-kinetic-scroll-overflow
Jan 20, 2026
Merged

Fix an OverflowError during rapid kinetic scrolling#47
fedelibre merged 1 commit intomasterfrom
fix-kinetic-scroll-overflow

Conversation

@bmjcode
Copy link
Copy Markdown
Contributor

@bmjcode bmjcode commented Dec 23, 2025

This is caused by PyQt not enforcing C++ integer size restrictions on QPoint coordinates, which we correct for by implementing our own overflow-safe Point type.

Fixes frescobaldi/frescobaldi#2130.

This is caused by PyQt not enforcing C++ integer size restrictions on
QPoint coordinates, which we correct for by implementing our own
overflow-safe Point type.

Fixes frescobaldi/frescobaldi#2130.
@bmjcode
Copy link
Copy Markdown
Contributor Author

bmjcode commented Dec 23, 2025

Note I deliberately limited changes to scrollarea.py because that's where overflows have been reported to occur. I left other instances of QPoint alone for now to avoid potentially breaking things I'm not certain how to test.

@fedelibre fedelibre merged commit 4056ce8 into master Jan 20, 2026
3 checks passed
@bmjcode bmjcode deleted the fix-kinetic-scroll-overflow branch March 7, 2026 16:19
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.

OverflowError: argument 2 overflowed: value must be in the range -2147483648 to 2147483647

2 participants