react-infinite-scroll-component
react-infinite-scroll-component copied to clipboard
Hide scroll bar but allow scrolling?
Hello,
is there a way to allow scolling while hiding the scroll bar? I tried applying the standard styles for hiding scroll bar (which works with any other scroll component):
.scroll-style { scrollbar-width: none; /* Firefox / -ms-overflow-style: none; / Internet Explorer 10+ / } .scroll-style::-webkit-scrollbar { / WebKit */ width: 0; height: 0; }
But this does not work for the infinite scroll component. Also setting style "overflow" to hidden does not work. I think it would be very nice if there was a way of hiding the scroll bar as it would look better in many applications and avoid a"jumping" scroll bar when fetching data.
Kind regards.
you can use this to help
- set the property to initial
all:initial;in scroll bar - don't forget to use force apply use
!importantin the css for overriding - Now you can style scroll bar as your wish