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

feat: provide option to hide scroll bar unless interacting with the scroll area #3435

Closed
wants to merge 2 commits into from

Conversation

zkrising
Copy link
Contributor

@zkrising zkrising commented Oct 3, 2023

The opacity of the scroll bar may optionally be tied
to the interaction the user is doing with the scroll area.

This has prior art in things like VSCode, which don't show scroll bars
on containers unless you're hovered over them or interacting
with the scroll bar.

This effect is disabled by default.

Peek 2023-10-03 17-27

…croll area

The opacity of the scroll bar may optionally be tied
to the interaction the user is doing with the scroll area.

This has prior art in things like VSCode, which don't show scroll bars
on containers unless you're hovered over them or interacting
with the scroll bar.

This effect is disabled by default.
Click the checkbox and it shows the effect.
@YgorSouza
Copy link
Contributor

Discussed in #3316

@zkrising
Copy link
Contributor Author

zkrising commented Oct 3, 2023

Ah. This is almost what's described in that PR but with two caveats:

  • it doesn't fade out if you're idle over the scrollview (this is consistent with vscode, inconsistent with gtk)
  • it doesn't do anything about the scroll bar reserving area (which is a separate issue imo)

@zkrising zkrising marked this pull request as draft October 4, 2023 21:38
@zkrising
Copy link
Contributor Author

zkrising commented Oct 4, 2023

Update: having a click_n_drag handler on the outer rect completely breaks being able to interact with the actual contents of the scroll container.

That makes a lot of sense obviously. My bad.

@emilk
Copy link
Owner

emilk commented Jan 7, 2024

Closed by #3539

@emilk emilk closed this Jan 7, 2024
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.

3 participants