malihu-custom-scrollbar-plugin icon indicating copy to clipboard operation
malihu-custom-scrollbar-plugin copied to clipboard

Horizontal Scroll have problem with Touch Screen, even on your sample page

Open MohammadKani opened this issue 7 years ago • 7 comments

Hi there, great plugin 👍

there is a problem on scrolling in x-axis with touch screen, you can check it with you sample page : http://manos.malihu.gr/repository/custom-scrollbar/demo/examples/complete_examples.html

if user touch between elements on draging to scrol, sometime its not working

MohammadKani avatar Nov 01 '17 18:11 MohammadKani

May it be related to #333?

vensires avatar Jan 16 '18 12:01 vensires

Hi, i had also this issue but i did a trick by adding inside content, overflow-x: auto; display: block,
.container { // selector for mcustomscrollbar overflow-x: auto; display: block; white-space: nowrap; > div { // content inside overflow-x: auto; display: block; } } but in my case, i had table markup and applying display: block compromised the styles of table.

JetmirAhmati avatar Feb 01 '18 18:02 JetmirAhmati

Having the same problem with horizontal scrolling, the touchpad scrolling only works if the axis is defined only as 'x', otherwise for 'yx' the horizontal scrolling doesn't work. Any solution for this?

guamacherox avatar Jul 24 '18 17:07 guamacherox

Unfortunately nothing so far.

vensires avatar Jul 24 '18 17:07 vensires

If your problem is the same as mine, I solved this issue by removing mCustomScrollbar after the default code like this:

$("#scrollableDiv").mCustomScrollbar({ axis:"x", theme:"inset-dark", }); $("#scrollableDiv").removeClass("mCustomScrollbar");

steffmartin avatar Aug 13 '18 22:08 steffmartin

If your problem is the same as mine, I solved this issue by removing mCustomScrollbar after the default code like this:

$("#scrollableDiv").mCustomScrollbar({ axis:"x", theme:"inset-dark", }); $("#scrollableDiv").removeClass("mCustomScrollbar");

i've tried this solution, and it works. Thanks!

rizqikautsar avatar Apr 03 '19 03:04 rizqikautsar

Another solution is to set touch-action to initial

.mCustomScrollbar {
    touch-action: initial
}

PowerSlime avatar May 30 '19 07:05 PowerSlime