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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 15 with smartphone/tablet smooth: true has site-breaking display issue #350

Open
michaelegan opened this issue Sep 22, 2021 · 15 comments

Comments

@michaelegan
Copy link

Hello 馃憢

Describe the bug
Viewing a Locomotive Scroll website with smooth: true enabled via smartphone and/or tablet parameters causes inconsistent display of navigation, difficulty scrolling to the very bottom (noticeable white space) and premature stopping of site scroll on the way back up.

Seeing this on a few of my sites where iOS 14 and desktop browsers works as expected but iOS 15 is an unusable scroll experience on Mobile Safari.

Using latest locomotive-scroll version from Git.

To Reproduce
Steps to reproduce the behavior:

  1. Go to this website on iOS15 simulator or device
  2. Start scorlling
  3. See error

Expected behavior
Regular smooth scrolling introducing smooth scrolling between scroll sections, parallax scrolling of images to match desktop

Desktop (please complete the following information):

  • N/A

Smartphone (please complete the following information):

  • Device: iPhone 11 device / iPhone 13 via Xcode simulator
  • OS: iOS15
  • Browser: Mobile Safari
  • Version: latest

Hoping to get some eyes on this. I love using this plugin as an easy add for parallax items but I'll need to temporarily disable this to restore site function.

@filippodicostanzo
Copy link

filippodicostanzo commented Sep 24, 2021

Same issue only on Safari with iOS 15.

Chrome installed on iOS 15 works fine.

@eduardfossas
Copy link

Same problem plus disabling it will cause all the sticky elements to break. Please check.

@kieranmansfield
Copy link

I've got the same issues, it's broken the scrolling on my site as soon as elements start moving. Weirdly though, other iOS browsers (they're all based on Safari) - everything works as expected. I think this issue is probably caused by the change to touchmove and the ability to no longer use preventDefault() with it.

@filippodicostanzo
Copy link

I just tried it on iPad running iOS 15.00 and it works fine.
The problem remains on iPhone.
Has anyone found a workaround?

@filippodicostanzo
Copy link

Any news for this issue?

@michaelegan
Copy link
Author

I'm hoping iOS 15.1 will fix the preventDefault() problem but no word back on any workarounds. I'll be turning this off for mobile once I get to it.

Was hoping to leave the link up long enough to get acknowledgement but I can't leave the site unattended forever.

@filippodicostanzo
Copy link

Prevent Default is need to fix.

https://pqina.nl/blog/how-to-prevent-scrolling-the-page-on-ios-safari/

This is a work around for fix a open modal with no scroll

I hope to fix this issue with iOS 15.1

@kieranmansfield
Copy link

Still broken on iOS 15.1.

@filippodicostanzo
Copy link

filippodicostanzo commented Oct 26, 2021 via email

@stephen-wright1
Copy link

Any news on a fix for this?

It seems like the locomotive scroll demo site is not using locomotive scroll in mobile viewports anyway (refresh their demo site (https://locomotivemtl.github.io/locomotive-scroll/) with a minimum width browser window!). So it seems like the 'official' fix is to not use locomotive in mobile, and let the native smooth scroll of mobile devices take over.

@Dushyant1295
Copy link

All I suggest guys scroll hijacking on mobile device is not pleasant experience, I would suggest disable it for mobile view

@nelson-designs
Copy link

nelson-designs commented Dec 10, 2021

Any updates on this one? I'm thinking about disabling smooth scroll on safari mobile devices. Just trying to figure out how.

@shmaltz
Copy link

shmaltz commented Jan 20, 2022

Any update on this?
I really wish I can disable smooth scroll on mobile devices, but it messes up the items with horizontal scroll.

@07734
Copy link

07734 commented Feb 8, 2022

The following code snippet will resolve the issues in Safari.

html.has-scroll-smooth {
    bottom: 0;
    left: 0;
    overflow: hidden;
    position: fixed;
    right: 0;
    top: 0;
}

@itskoyii
Copy link

itskoyii commented May 6, 2022

The above code snippet disabled the locomotive scroll on mobile which also diable the horizontal scrolling and other data-scroll-speed

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

10 participants