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

Remove javascript scrollbar library #429

Merged
merged 1 commit into from
Jul 3, 2016
Merged

Remove javascript scrollbar library #429

merged 1 commit into from
Jul 3, 2016

Conversation

xPaw
Copy link
Member

@xPaw xPaw commented Jun 22, 2016

Removes the tse-scrollbar library. Makes the channel list and user list only have scrollbar visible when hovering over the container.

This library was used in the channel list only, it is sometimes quite laggy on mobile.

@xPaw xPaw added the Type: Feature Tickets that describe a desired feature or PRs that add them to the project. label Jun 22, 2016
@astorije
Copy link
Member

I think there were some issues discussed on the channel, but if we end up being able to get rid of that plugin, that's really cool! 🎉

Will review when I get some free time.

@astorije astorije self-assigned this Jun 23, 2016
@maxpoulin64
Copy link
Member

I like that, works really well! Good job 👍

Styling could be a bit better (at least color match the old tse one and a transition), but that can go with another PR.

overflow-y: scroll;
.scrollable {
overflow: auto;
visibility: hidden;
Copy link
Member

Choose a reason for hiding this comment

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

This has an unfortunate side effect, so I suggest removing fiddling with scrollbar visibility and letting the OS decide: scrollbars are set up to always show up on my OS, and this change effectively ignores this setup. Essentially, this is an accessibility issue (accessibility is not only about screen readers ;-) ).

@astorije
Copy link
Member

One minor comment (disabling the display-on-hover) and then I'll be +1 on that PR :-)

@xPaw
Copy link
Member Author

xPaw commented Jun 26, 2016

@astorije That's not exactly minor. Windows scrollbars are ugly in all browsers (except Chrome where we style them), and I'm sure users would want to get rid of them.

@astorije
Copy link
Member

Right, I understand. However, I believe this should be a recipe in the CSS Mods page because, as it is in this PR, it contradicts OS settings in OSes that offer system-wide control of the scrollbars.

@xPaw
Copy link
Member Author

xPaw commented Jul 2, 2016

@astorije I've removed the hover stuff.

@astorije
Copy link
Member

astorije commented Jul 3, 2016

Great @xPaw, 👍!
Glad we can get rid of an in-repo library 😄

@astorije astorije merged commit f21f901 into master Jul 3, 2016
@astorije astorije deleted the xpaw/scrollbar branch July 3, 2016 00:46
@xPaw xPaw added this to the 2.0.0 milestone Jul 3, 2016
@astorije astorije changed the title Remove javascript scrollbar library, use hover appearing scrollbar instead Remove javascript scrollbar library Aug 6, 2016
matburnham pushed a commit to matburnham/lounge that referenced this pull request Sep 6, 2017
Remove javascript scrollbar library, use hover appearing scrollbar instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Tickets that describe a desired feature or PRs that add them to the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants