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

fix(funnels): fix infinite scroll caused by scrollbar #18848

Merged
merged 6 commits into from
Nov 23, 2023

Conversation

thmsobrmlr
Copy link
Contributor

Problem

(Hopefully) proper fix for #18839.

Changes

This PR subtracts the height of an eventual scrollbar from the available height. Have refactored existing code to hopefully leave it more understandable for the future traveller. Removed a useMemo that I don't think is necessary.

How did you test this code?

Various combinations of funnels in Chrome and Firefox while toggling the "show scrollbars" setting in Mac. Notably haven't tested on windows - would be great to verify the fix once it's in there.

@thmsobrmlr thmsobrmlr force-pushed the fix-funnnel-overscroll branch from a6aa8bd to 2f7ed50 Compare November 23, 2023 12:00
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

15 snapshot changes in total. 0 added, 15 modified, 0 deleted:

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Contributor

Size Change: 0 B

Total Size: 1.83 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.83 MB

compressed-size-action

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm...

@thmsobrmlr thmsobrmlr requested review from a team and benjackwhite November 23, 2023 12:38
@MarconLP MarconLP linked an issue Nov 23, 2023 that may be closed by this pull request
@thmsobrmlr thmsobrmlr merged commit fc0107f into master Nov 23, 2023
75 checks passed
@thmsobrmlr thmsobrmlr deleted the fix-funnnel-overscroll branch November 23, 2023 13: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.

Funnel bars are growing indefinitely
3 participants