Jump to content
Search Community

luisglez2212

Members
  • Posts

    3
  • Joined

  • Last visited

luisglez2212's Achievements

  1. Unfortunately none of the solutions helped me (I fixed the Locomotive Scroll implementation with Scroll Trigger) but I've found one. When setting up the mobile and tablet scroll for Locomotive Scroll, I deactivated the smooth in order to maintain the vanilla scroll of the browser as Locomotive Scroll gives a really slow scroll on mobile. This is what caused the problem. However, if you put a touchMultiplier instance to Locomotive Scroll you can actually replicate the vanilla scrolling speed. My set up looks like this now: const locoScroll = new LocomotiveScroll({ el: document.querySelector(".scroll-smooth"), smooth: true, multiplier: 0.25, lerp: 0.035, touchMultiplier: 9, tablet: { smooth: true, breakpoint: 0, lerp: 0, }, mobile: { smooth: true, breakpoint: 0, lerp: 0, }, }); It's not the optimal solution if you want to quit smooth scrolling for mobile...but for me it works.
  2. Here it is. When the scroller stops or reaches the end of the page, the view automatically scrolls to the top of the page. This only occurs when watching the page in mobile phone, not when watching the responsive via desktop. https://codepen.io/luisglez22/pen/BaGVqvB
  3. Hey, I have the same problem, did you find a solution?
×
×
  • Create New...