Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@AdamMerrifield
Copy link
Contributor

With the current implementation of useLockScroll child elements with overflow-x of 'auto' | 'scroll' on IOS are prevented and scrolling in these panels do not function well. I only found this as an issue with IOS.
The modifications here will check for both X and Y overflow on the parent elements of the event target.

You can see an example on an IOS device here https://stackblitz.com/edit/github-s2cpc5?file=src%2Fcomponents%2FMyModal.vue

based on willmcpo/body-scroll-lock#133

this allows for short circuiting the `hasAnyScrollableEl` function if it finds a scrollable element and stop checking parents
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

Successfully merging this pull request may close these issues.

1 participant