I'm having a strange issue with using this plugin in a Bootstrap modal. I have a product detail page with some thumbnail images. I want to launch a modal when a thumbnail is clicked, and the modal will display the first image at a large size and then the rest of the thumbnails, and the large image will have the zoom on it. If you hover (with a mouse) or touch a thumbnail, it changes the source of the large image but the zoom should stay the same.
I'm initiating the zoom() function on the shown.bs.modal event because I don't know when the images will be loaded into the modal.
Everything works fine with a mouse device, the zoom works without a hitch. But when I test on a touch device like an iPhone or Android phone, this is what happens:
The modal loads correctly.
The first large image does not zoom properly. If you touch it, it enlarges for a fraction of a second and then goes back to regular size and nothing else happens until you tap again.
If you touch a thumbnail, the large image source changes, and then the zoom works correctly.
I'm having a strange issue with using this plugin in a Bootstrap modal. I have a product detail page with some thumbnail images. I want to launch a modal when a thumbnail is clicked, and the modal will display the first image at a large size and then the rest of the thumbnails, and the large image will have the zoom on it. If you hover (with a mouse) or touch a thumbnail, it changes the source of the large image but the zoom should stay the same.
I'm initiating the zoom() function on the shown.bs.modal event because I don't know when the images will be loaded into the modal.
Everything works fine with a mouse device, the zoom works without a hitch. But when I test on a touch device like an iPhone or Android phone, this is what happens:
Here is my code: