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

Tablet/Mobile data-scroll-section #561

Open
Artsem77 opened this issue Jun 5, 2024 · 1 comment
Open

Tablet/Mobile data-scroll-section #561

Artsem77 opened this issue Jun 5, 2024 · 1 comment

Comments

@Artsem77
Copy link

Artsem77 commented Jun 5, 2024

Hi. Please tell me if it is possible to make data-scroll-section to work on mobile device when i dont use "smooth: true" for smartphone.

customScroll = new LocomotiveScroll({
el: document.querySelector('[data-scroll-container]'),
smooth: true,
tablet: {
breakpoint: breakpointNum,
smooth: true
},
smartphone: {
breakpoint: breakpointNum
}
});

Desktop sticky elements working fine, don't work on mobile

@evan-chernicky
Copy link

evan-chernicky commented Jun 20, 2024

Having the same issue here. I Tried adding smooth touch to the options:
export const locomotiveScroll = new LocomotiveScroll({
initCustomTicker: (render) => {
gsap.ticker.add(render);
},
destroyCustomTicker: (render) => {
gsap.ticker.remove(render);
},
lenisOptions: {
smoothTouch: true,
wheelMultiplier: 1,

}

});

Also tried adding the attribute
<img data-enable-touch-speed data-scroll data-scroll-speed="0.08"

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

2 participants