jackmoore / wheelzoom

A small script for zooming IMG elements with the mousewheel/trackpad.
http://www.jacklmoore.com/wheelzoom
MIT License
342 stars 95 forks source link

Problem in modal box #22

Closed sudinem closed 4 years ago

sudinem commented 7 years ago

When I add the wheel zoom in dynamic content as image within modal box, the image is already in zoomed state and I could not zoom in and zoom out the image. Nothing happens to the image. How to resolve this issue ?

juancresc commented 7 years ago

the same here, not working inside bootstrap modals

MarlonWilkes commented 6 years ago

+1

Cepulis commented 6 years ago

+1

mldxpt commented 5 years ago

It's working for me by adding a timeout : setTimeout(function(){ wheelzoom(document.querySelectorAll('img.zoomable')); }, 500);

Timothy0 commented 5 years ago

Used "visibility: hidden;" instead of "display none;" to hide the images/modal and it now works for me.