Skip to content

Increase subpixel tolerance to fix ScrollArea.onBottomReached() while zoomed out.#8616

Merged
rtivital merged 1 commit intomantinedev:masterfrom
robert-j-webb:master
Jan 15, 2026
Merged

Increase subpixel tolerance to fix ScrollArea.onBottomReached() while zoomed out.#8616
rtivital merged 1 commit intomantinedev:masterfrom
robert-j-webb:master

Conversation

@robert-j-webb
Copy link
Contributor

Fixes #8608

I could only reproduce this issue when zoomed out to 33%, where I would see the difference between (scrollTop - (scrollHeight - clientHeight) == 0.77. I found I could no longer reproduce the issue, even at extreme zooms with the tolerance set to 0.8. It does pass tests.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an issue where the ScrollArea.onBottomReached() callback fails to trigger when the browser is zoomed out. The fix increases the subpixel rendering tolerance from 0.6 to 0.8 pixels to account for larger subpixel discrepancies at extreme zoom levels (e.g., 33% zoom).

Changes:

  • Increased the scroll threshold tolerance from -0.6 to -0.8 pixels
  • Updated the inline comment to clarify the tolerance accounts for zoomed-out scenarios

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rtivital rtivital merged commit b7075e1 into mantinedev:master Jan 15, 2026
7 checks passed
@rtivital
Copy link
Member

Thanks!

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.

ScrollArea onBottomReached not work when zoom in/out browser

3 participants