elevateweb / elevatezoom

1.02k stars 493 forks source link

remove previous created zoomContainer #155

Open IDfhimanshu opened 7 years ago

IDfhimanshu commented 7 years ago

Once multiple images are opened then multiple zoomContainer will be created for these images that causes problem in handling image as zoomContainer images will be shown with position "absoulute " now on page and disable click on any other div

coder4589 commented 7 years ago

Hi @IDfhimanshu ,

The post link below is from jQuery Forum! If you know how to help me with this problem, please let me know! Thanks!

elevateZoom jQuery Plugin - How to hide ZoomLens when the mouse is not hover the images?

https://forum.jquery.com/topic/elevatezoom-jquery-plugin-how-to-hide-zoomlens-when-the-mouse-is-not-hover-the-images

kakugiki commented 6 years ago

As I commented on Issue #154, I just call $('.zoomContainer').remove(); before elevateZoom(). It works for me.