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

Improve bar usability #19

Closed ataylor32 closed 4 years ago

ataylor32 commented 4 years ago

There are a couple of usability issues with the bar:

  1. With a native scrollbar, clicking in the track below the bar will cause the content to scroll down. With fakescroll, clicking in the track below the bar doesn't do anything.
  2. You can't interact with the bar on touch devices
yairEO commented 4 years ago
  1. yes you can click on the track to scroll the content
  2. yes it does work on mobile

Made sure of both of those 6 years ago when I wrote this code. it's works on the demo page of this code. (see the second example for clicking anywhere on the track to scroll there)

yairEO commented 4 years ago

image