Skip to content

Conversation

@ehuss
Copy link
Contributor

@ehuss ehuss commented Oct 21, 2025

This particular value can go to zero when the document height and the window height are exactly the same value. This causes a NaN which causes the "current" heading nav bug to not update properly. This clamps the value to 1 to avoid that.

@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Oct 21, 2025
@ehuss ehuss enabled auto-merge October 21, 2025 00:04
@rustbot

This comment has been minimized.

This particular value can go to zero when the document height and the
window height are exactly the same value. This causes a NaN which causes
the "current" heading nav bug to not update properly. This clamps the
value to 1 to avoid that.
@ehuss ehuss force-pushed the divide-by-zero-heading-bug branch from 0fc7e07 to 4b5004b Compare October 21, 2025 00:43
@rustbot
Copy link
Collaborator

rustbot commented Oct 21, 2025

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@ehuss ehuss added this pull request to the merge queue Oct 21, 2025
Merged via the queue into rust-lang:master with commit a097fe6 Oct 21, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: waiting on a review label Oct 21, 2025
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.

2 participants