You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the img is new created by js, zoom doesnt work. Is there a solution? I am sorry. It works. But Just I cant find the picture on the screen. Does some one have this problem?
The text was updated successfully, but these errors were encountered:
It doesn't work because the listen function which registers the click handler on the images is called only once at the start. So images inserted after the page is ready will not work.
I can't think of quick fix since no global variables are exposed by the plugin.
It doesn't work because the listen function which registers the click handler on the images is called only once at the start. So images inserted after the page is ready will not work.
I don't think that's completely accurate. It's true that listen is called at the start but if you see
it adds an event handler for click events on <body>. Even if a new image is created dynamically, clicking on it should bubble up and everything should work.
@weipingcui can you share a JSfiddle/CodePen/equivalent example of what you're doing?
if the img is new created by js, zoom doesn
t work. Is there a solution? I am sorry. It works. But Just I can
t find the picture on the screen. Does some one have this problem?The text was updated successfully, but these errors were encountered: