You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scroll effect does not work on the smartphone and also in the touch screen device even if it is a laptop and other devices. I have tried multiple options adding the codes like this:
const scroll = new LocomotiveScroll({
el: document.querySelector('[data-scroll-container]'),
smooth: true,
smartphone: {
smooth: true
},
tablet: {
smooth: true
}
});
// this also:
const scroll = new LocomotiveScroll({
el: document.querySelector('[data-scroll-container]'),
smooth: true,
smartphone: {
smooth: true,
direction: "vertical" //use the direction according to your need//
},
tablet: {
smooth: true,
direction: "vertical" //use the direction according to your need//
},
});
const scroll = new LocomotiveScroll({
el: document.querySelector('[data-scroll-container]'),
smooth: true,
smartphone: {
breakpoint: 0,
smooth: true,
direction: "horizontal",
},
tablet: {
breakpoint: 0,
smooth: true,
direction: "horizontal"
},
});
But none of the code works.
Thank you 👊
The text was updated successfully, but these errors were encountered:
Hello 👋
The scroll effect does not work on the smartphone and also in the touch screen device even if it is a laptop and other devices. I have tried multiple options adding the codes like this:
const scroll = new LocomotiveScroll({
el: document.querySelector('[data-scroll-container]'),
smooth: true,
smartphone: {
smooth: true
},
tablet: {
smooth: true
}
});
// this also:
const scroll = new LocomotiveScroll({
el: document.querySelector('[data-scroll-container]'),
smooth: true,
smartphone: {
smooth: true,
direction: "vertical" //use the direction according to your need//
},
tablet: {
smooth: true,
direction: "vertical" //use the direction according to your need//
},
});
const scroll = new LocomotiveScroll({
el: document.querySelector('[data-scroll-container]'),
smooth: true,
smartphone: {
breakpoint: 0,
smooth: true,
direction: "horizontal",
},
tablet: {
breakpoint: 0,
smooth: true,
direction: "horizontal"
},
});
But none of the code works.
Thank you 👊
The text was updated successfully, but these errors were encountered: