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

useScrollLock In IOS will lock the entire page #1558

Closed
7 tasks done
LittleSound opened this issue May 4, 2022 · 0 comments · Fixed by #1561
Closed
7 tasks done

useScrollLock In IOS will lock the entire page #1558

LittleSound opened this issue May 4, 2022 · 0 comments · Fixed by #1561

Comments

@LittleSound
Copy link
Contributor

LittleSound commented May 4, 2022

Describe the bug

useScrollLock In IOS will lock the entire page, In other cases only the specified element will be locked.

code:

    if (isIOS) {
      touchMoveListener = useEventListener(
        document,
        'touchmove',
        preventDefault,
        { passive: false },
      )
    }

The target of the event is document and not element, is this the expected behavior?
If this is a bug I think I can help fix it

Reproduction

https://vueuse.org/core/usescrolllock/

System Info

Empty

Used Package Manager

pnpm

Validations

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 a pull request may close this issue.

1 participant