willmcpo / body-scroll-lock

Body scroll locking that just works with everything 😏
MIT License
4.04k stars 337 forks source link

Supported iOS and iPadOS 13 with "Request Desktop Website" enabled #155

Closed iwbc closed 4 years ago

iwbc commented 4 years ago

Addressed an issue where body scroll lock would not work if "Request Desktop Website" were enabled in Safari on iOS and iPadOS 13

diachedelic commented 4 years ago

@willmcpo do you have the capacity to publish a new release? I think this PR is necessary

GilliganL commented 4 years ago

This does fix the issue with iOS except for the IE11 check which is discussed in the thread posted below, if you are supporting IE11. (search MSStream) https://stackoverflow.com/questions/9038625/detect-if-device-is-ios

diachedelic commented 4 years ago

I think that is just IE11 for mobile...can't imagine many people are running that. This PR is tested and working on iPad simulator running iOS 13.3.