var slideAmount = $(window).width() > 1200 ? 300 : 10;
$(".selector").mCustomScrollbar({
axis:"x",
keyboard:{ enable: false },
snapAmount: slideAmount,
});
How i can update snapAmount in this case? For an example i want it to be 300px if window's width is over 1200px and 10px, if its under while resizing. I've tried with onUpdate callback, but it doesnt work and i've read the documentation and tried almost everything, but couldn't find a solution. Please help.