Horizontal scrollbars with slimscroll

I use slimscroll for my scroll needs and it works great. Now I need horizontal scrolling. A quick google search gives me some results for links in the github source code and some problems that indicate that horizontal scrolling support has been added, but nowhere can I find an example. I looked through the javascript file, expecting to find a flag to switch from vertical to horizontal. It has nothing so obvious. So my question is, is it possible, yes, how? As an example, we will be grateful.

+4
source share
3 answers

I implemented ngSlimscroll, a rewritten version of the original slimscroll in AngularJS. It also supports horizontal scrolling. For example, demo .

-2
source

The latest version of slimscroll is 1.3.1 (from the github repository), and it does not support horizontal scrollbar. Try jQuery's scrollbar or any scrollbar that supports horizontal scrolling from this scroll comparison table .

+7
source

Have you tried to add this code?

$(".content").mCustomScrollbar({
    axis:"x" // horizontal scrollbar
});

$(".content").mCustomScrollbar({
    axis:"yx" // vertical and horizontal scrollbar
});
-1
source

Source: https://habr.com/ru/post/1547145/


All Articles