ngx-image-zoom icon indicating copy to clipboard operation
ngx-image-zoom copied to clipboard

Zoom image referencing old image if image url changes

Open markoghifo opened this issue 7 years ago • 3 comments

So I have <ngx-image-zoom [thumbImage]="selectedImage" [zoomMode]="'hover'" [magnification]="2" [enableLens]="true" [maxZoomRatio]="3" [enableScrollZoom]="true" ></ngx-image-zoom> for which selectedImage is a variable that I tend to change. After changing it, the hover still shows the zoomed image of the first referenced image

markoghifo avatar Oct 08 '18 14:10 markoghifo

I've run into this very bug myself and it's on my shortlist of things to fix. Meanwhile, as a workaround, you can specify the same image as [fullImage] too, which should solve this issue. So:

<ngx-image-zoom
   [thumbImage]="selectedImage"
   [fullImage]="selectedImage"
   [zoomMode]="'hover'"
   [magnification]="2"
   [enableLens]="true"
   [maxZoomRatio]="3"
   [enableScrollZoom]="true" ></ngx-image-zoom>

Hope that helps!

I'll keep this issue open as a reminder to fix the bug so this workaround wont be needed anymore.

wittlock avatar Oct 08 '18 14:10 wittlock

Thanks

markoghifo avatar Oct 08 '18 14:10 markoghifo

Same issue for me.

drenda avatar Aug 04 '20 08:08 drenda