kingdido999 / zooming

🔍 Image zoom that makes sense.
https://kingdido999.github.io/zooming
MIT License
1.61k stars 121 forks source link

Closing on scroll doesn't occur as expected #329

Open GMZC opened 3 years ago

GMZC commented 3 years ago

Make sure the bug can be reproduced in either demo page or a forked codepen page.

It's visible on various pages at this address, an artist website we delivered recently.

Describe the bug When the content is scrolled the zoomed image doesn't close and I can't figure out why.

To Reproduce Steps to reproduce the behavior:

  1. Click on an image to zoom it.
  2. Scroll.
  3. Image moves offscreen but doesn't close unless you click.

Expected behavior The image should close and get back in its place to prevent clicking.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.