E
E
Enfiladed2019-10-14 00:06:16
Vue.js
Enfiladed, 2019-10-14 00:06:16

Is there a library for vue - remove the scrollbar and leave scrolling?

Hello! This has been asked many times, but I want to ask again regarding vue.js, but is there a micro-library to remove the scroll bar, but leave the scroll itself? I found enough libraries to customize it or customize the scrolling, but just remove it, no. I could write it myself, in the form of a solution, put everything in a container, hide the strip, and move the content using js, but most likely I will forget something, somewhere it will not work, and if there is a ready one, then why re-write and waste time. If anyone knows, I will be very grateful

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey delphinpro, 2019-10-14
@Lisey

There is nothing to forget.
overflow:hidden and a couple of events for the mouse and sensors: onwheel, touchmove
Moreover, you can detect webkits, and do nothing for them with scripts, but hide the strip with styles. Scroll will work.

E
Evgeny Kylin, 2019-10-14
@palkan_karabov

::-webkit-scrollbar {
    width: 0px;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question