Message from JavaScript discussions

December 2018

— I want to hide scrollbar but it should allow scrolling functionality

— 

In some browsers you can hide the scrollbar with css. There is another way which works in all browsers. When the scrolling container width is wider than the viewport and you disable horizontal scrolling. Then you cant see the scrollbar because its outside of the viewport.

— Https://stackoverflow.com/questions/16670931/hide-scroll-bar-but-while-still-being-able-to-scroll there someone also wrote about a more reliable js solution

Message permanent page

— Not working tried

— What exactly is not working? no events?

— Marvin_1003 This is what I currently use: https://codepen.io/kleinfreund/pen/veGvKB

— Long story, short: Hiding scrollbars only visually without disabling its functionality isn’t really possible *without using JavaScript*.

Message permanent page

— The workaround will have do something along the lines of moving the scrollbar out of a visible area. E.g.: Hiding it under another element with overflow hidden (see codepen above) or measuring the scrollbar size (doesn’t really work, scrollbars have different sizes).

Message permanent page

— Ah, I meant to mention rakesh above, sorry.

— Thanks

— I also forgot to mention that the JavaScript solutions are more reliable (as Marvin mentioned as well). It depends on whether JavaScript is to be avoided in your application.

Message permanent page

— I want to create a mongo collection one to many and many to one