yairEO / fakescroll

vanilla-js lightweight custom HTML scrollbar
http://yaireo.github.io/fakescroll
GNU Affero General Public License v3.0
365 stars 33 forks source link

Scaling the browser window reveals the native scrollbars in chrome #14

Open fpauser opened 5 years ago

fpauser commented 5 years ago

When scaling the browser window native scrollbars appear in addition to the fakescroll scrollbars:

image

This happens in the latest stable google chrome.

mohmedxpmpa commented 4 years ago

me too

fpauser commented 4 years ago

I switched over to SimpleBar and don't have any issues so far. Its also lightweight and actively maintained.

yairEO commented 4 years ago

I have nothing to maintain because there were no issues and I wrote it years ago and it's so simple and small it just works great.

If you care specifically about people who scale their browser than simply adjust your CSS accordingly.

In terms of javascript, there can be nothing lighter and better than this script (and all my other scripts for the matter)


Update - I see it's not the browser scaling which is the problem but OS systems where they are configures to render anything at over 100% (only old people or ones with vision issues configure it over 100%)

yairEO commented 4 years ago

@fpauser - looking at SimpleBar NPM it's 504 kB where mine is 65.1 kB (I can get it down a lot more, it's including minified + unfinished code which is a duplication, so I honestly do not understand you claim for it to be "lightweight". it's literally close to 8 times my code.

ataylor32 commented 4 years ago

I haven't seen this issue occur myself, but if it is still a problem, I wonder if disabling native scrollbars would fix the problem.