-
Notifications
You must be signed in to change notification settings - Fork 22
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
Image is not zooming while continuous clicking #47
Comments
Can you elaborate on the problem a little? Does it happen on all browsers? Could you send me a video showing the issue? |
Yes, it happens potentially on any browser, no need for a video (but found the issue in Chrome for Android). You can easily reproduce it by reducing your internet speed and disable cache in responsive dev mode of browser. And click again on the image to zoom, while the overlay has not been shown yet, because the image for the overlay is still loading. The problem is that when the So if you already destroyed There are several solutions to this problem possible:
EDIT: I noticed your |
@jetibest thank you for the reproduction steps! I see the issue now as well. I think option 1 sounds quite straightforward - are there any downsides to that? Also thanks for the suggestion about fullWidth/naturalWidth. I'll look into it. So far I've avoided making changes to the core of the library that I forked from, but it might be time to revisit that! |
Of course, using naturalWidth and naturalHeight is more elegant. I cannot think of any special downsides to the first option. The only thing to consider is that |
I just noticed this issue in my environment as well (more often in dev mode, using nuxt.js). Would be nice to have fixed soon. |
Added the zooming files on my blog pages. It is working for normal cases, but i am trying to click the image multiple time continuously 1. sometimes it is not respond(can't zooming) 2. some times alignment is collapsed(image alignment). It is mainly affected on the large monitors(4k monitors). Can you please check and help me to resolve this problem.
The text was updated successfully, but these errors were encountered: