elevateweb / elevatezoom

1.02k stars 493 forks source link

multiple zoomContainer issue when more then one image is opened #154

Open err-himanshu opened 7 years ago

err-himanshu commented 7 years ago

multiple zoomContainer issue while multiple images are opened . When there is more the one image is opened and you added elevateZoom using class method like :->

$(".test").elevateZoom(zoomConfig); then mutltiple zoomContainer will be created and that cause problem of clicking any other div

dgreen22 commented 6 years ago

Did you find a solution to this?

kakugiki commented 6 years ago

I had the same issue when using carousel. A zoomContainer left from previous page will show when hovering to the left. A new zoomContainer is created every time a new image is opened. To make sure there is only one zoomContainer, I just call $('.zoomContainer').remove(); before elevateZoom(). It works for me.