Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll effect not working on smartphone and touch screen #569

Open
dewebkiller opened this issue Oct 21, 2024 · 0 comments
Open

Scroll effect not working on smartphone and touch screen #569

dewebkiller opened this issue Oct 21, 2024 · 0 comments

Comments

@dewebkiller
Copy link

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 👊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant