ImageZoom: Fix for animated WebP images (#3407)

This commit is contained in:
hexa 2025-05-02 21:28:53 -04:00 committed by GitHub
parent 838a90831f
commit bebf3dd068
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -203,7 +203,7 @@ export const Magnifier = ErrorBoundary.wrap<MagnifierProps>(({ instance, size: i
}} }}
width={`${box.width * zoom.current}px`} width={`${box.width * zoom.current}px`}
height={`${box.height * zoom.current}px`} height={`${box.height * zoom.current}px`}
src={instance.props.src} src={instance.props.src + "?animated=true"}
alt="" alt=""
/> />
)} )}