paulkr / blowup.js

🔍 jQuery plugin for image magnification.
https://paulkr.github.io/blowup.js/
MIT License
92 stars 50 forks source link

Lens not working properly when changing source of img #17

Open Lessad opened 4 years ago

Lessad commented 4 years ago

Hello there :)

I have tested blowup.js and it is working well with the first image. But if I change the source of my tag the zoomed image does not change.

I tried the following:

 $("#BlowupLens").remove();  (Removing the "BlowupLens" div via jQuery)
 $("img").blowup();    ( Using the .blowup function again after I changed my source)

Now the image is updated. But while moving the mouse the lens is white, and when I stop moving the zoomed image appears. I added screenshot to illustrate this

Thank you in advance ! Lessad

While Moving Mouse WhileMoving

Mouse Stopped MouseStopped