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

Auto closed on iOS safari browser #181

Open
WinmezzZ opened this issue Sep 9, 2021 · 1 comment
Open

Auto closed on iOS safari browser #181

WinmezzZ opened this issue Sep 9, 2021 · 1 comment

Comments

@WinmezzZ
Copy link

WinmezzZ commented Sep 9, 2021

Bug description

When I clicked image on iOS safari browser , it show one second then auto closed
but google and edge is ok, so do with any PC browser

How to reproduce

A list of the steps to reproduce the bug.

  1. code:
  useEffect(() => {
    if (typeof window === 'undefined') return;

    const zoom = mediumZoom('article .markdown img', {
      scrollOffset: 0,
      background: 'rgba(25, 18, 25, .9)'
    });

    return () => {
      zoom.detach();
    };
  }, []);
  1. Click on the image

Expected behavior

only turn off the preview when I trigger it

Reproducible example

[my site](my site:The second picture)

Environment

  • Platform: iOS 15beta 4
  • Browser: Safari
  • medium-zoom version: 1.0.6
@WinmezzZ WinmezzZ changed the title Auto close on iOS safari browser Auto closed on iOS safari browser Sep 9, 2021
@WinmezzZ
Copy link
Author

Upload.from.GitHub.for.iOS.MOV

It looks like Safari automatically adjusts the window

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

1 participant