Skip to content

Scroll bar interactive fix#43

Open
seventil wants to merge 1 commit intodevelopfrom
scroll_bar_interactive_fix
Open

Scroll bar interactive fix#43
seventil wants to merge 1 commit intodevelopfrom
scroll_bar_interactive_fix

Conversation

@seventil
Copy link
Copy Markdown

@seventil seventil commented Apr 20, 2026

The issue with previous implementation was that with interactive: false the background gets the 4px width, and contentItem width is then recalculated to 0 but widening it and making it visible on hover.

The fix makes the scrollBar to behave like scrollIndicator if interactive: false

The fix ensures the contentItem is visible when non-interactive and makes the width logic simpler: if the scrollBar is interactive, we have width-changing logic, if not - the width doesn't change on hover. The wider padding for non-interactive item looks worse, as it just creates a 1px detatchment from the border, so I removed that as well.

@seventil seventil changed the base branch from master to develop April 20, 2026 14:11
@seventil seventil requested a review from AndrewSazonov April 20, 2026 14:15
@seventil seventil added [priority] low Low importance [scope] bug Bug report or fix (major.minor.PATCH) labels Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[priority] low Low importance [scope] bug Bug report or fix (major.minor.PATCH)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant