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

iOS Safari 15 address bar effectively kills dragging #2367

Open
ypresto opened this issue Feb 8, 2022 · 3 comments
Open

iOS Safari 15 address bar effectively kills dragging #2367

ypresto opened this issue Feb 8, 2022 · 3 comments

Comments

@ypresto
Copy link

ypresto commented Feb 8, 2022

Although I saw maintenance note on README.md, I'll open this because it makes the library useless in iOS >= 15 env.

In iOS 15 Safari shows/hides address bar at appropriate scroll position, and every show/hide will fire resize event.
This library cancels dragging on resize event, so automatic scrolling causes cancellation.

Expected behavior

Does not cancel dragging on scroll.

Actual behavior

Does cancel dragging on scroll toward top edge.

Steps to reproduce

  1. Open below "vertical list" example in Safari landscape mode.
    https://codesandbox.io/s/k260nyxq9v
  2. Scroll toward bottom edge, you'll find address bar is shrunk.
  3. Drag item toward top edge
  4. At some point of scrolling, Safari shows address bar.
  5. Dragging is cancelled.

Suggested solution?

Remove resize event listener, or make it optional.

@egormiron
Copy link

@ypresto have you found the working solution? Currently, the issue still exists

@sanjubhambhani
Copy link

Hi, facing the same issue on iOS Safari. However, when I move the URL bar to the top, it works as expected.

Anyone have a fix for this?

@timmeade
Copy link

Looking for fix for same issue.....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants