zoom icon indicating copy to clipboard operation
zoom copied to clipboard

Zooms original image in thumbnail gallery, not new image

Open Chris-Reedy opened this issue 9 years ago • 3 comments

I have a grid of div's. Each div opens a modal. Each modal has a simple thumbnail gallery (click thumbnail, main image is replaced).

Problem is that zoom is only working with the original main image. It doesn't realize there is a new main image after clicking a thumbnail so it continues to zoom the original image.

SEE FIDDLE: http://jsfiddle.net/zuhloobie/bcuh489d/1/

How do I fix that?

Thanks in advance!

Chris-Reedy avatar Jul 08 '15 22:07 Chris-Reedy

You need to recall the zoom function somehow. If you have it in a directive figure out how to recall the directive so that the zoom function can be called again.

Digital-1mpulse avatar Jul 31 '15 17:07 Digital-1mpulse

I think you need to update the source for the zoom image too. So for example after line 38 of query.zoom.js I added:

.attr('id','zoomimage')

I then used the id "zoom image" with some javascript or jquery so that onclick on the thumbnail its swaps the src for the zoom. Hopefully this makes sense. See what I did here: http://bit.ly/1T0TylS

pinkp avatar Nov 24 '15 19:11 pinkp

Hi guys, I think I am having the same issue.

The zoom image is not changing after i click on of the image or thumbnail. Please see: https://kauppa.paljasjalkakengat.net/products/kiinalainen-gua-sha-kivi

I am following this guide for shopify: https://www.shopify.com/partners/blog/jquery-image-zoom

Can someone give me hint please what am I missing?

`

});
`

jmcausing avatar Aug 15 '17 09:08 jmcausing