malihu / malihu-custom-scrollbar-plugin

Highly customizable custom scrollbar jQuery plugin, featuring vertical/horizontal scrollbars, scrolling momentum, mouse-wheel, keyboard and touch support etc.
http://manos.malihu.gr/jquery-custom-content-scroller
MIT License
4.11k stars 1.5k forks source link

Is it possible to hide the scrollbar, but still allow for swiping through content? #195

Open jerseycheese opened 10 years ago

jerseycheese commented 10 years ago
  1. I have a horizontal scrollbar, but at my responsive tablet breakpoint I want to hide the scrollbar, yet still retain the ability to swipe left/right through the content. It seems swiping is quite broken/jarring when attempting to swipe through the content on an iPad when .mCSB_scrollTools.mCSB_scrollTools_horizontal is set to "display: none !important". I was hoping there'd be a config option that will visually hide the scrollbar. Maybe I'm missing it somewhere?
  2. Another question while I'm here: is it possible to enable swiping through the content (via a mousedrag) on a desktop computer, to emulate how a mobile device swipes?

Thanks!

jerseycheese commented 10 years ago

After some more work on issue 1 here, I can confirm setting the scrollbar to "height: 0" will hide it but still retain the ability to swipe through content.

However, issue 2 is still a mystery to me.

malihu commented 10 years ago
  1. You could also use the "minimal" or "minimal-dark" themes that simulate touch-devices OS native scrolling.
  2. There's no cursor-swipe scrolling as it's usually not an efficient way of scrolling content and it'd break or mess with other user actions like selecting text.