From 358eb6ad8eaf86fc96494f0e36216608e0023357 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 11 Apr 2023 02:00:42 +0200 Subject: ImageZoom Fixes --- src/plugins/imageZoom/components/Magnifier.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/imageZoom/components') diff --git a/src/plugins/imageZoom/components/Magnifier.tsx b/src/plugins/imageZoom/components/Magnifier.tsx index e61c560..75bd2e1 100644 --- a/src/plugins/imageZoom/components/Magnifier.tsx +++ b/src/plugins/imageZoom/components/Magnifier.tsx @@ -36,7 +36,6 @@ export interface MagnifierProps { export const Magnifier: React.FC = ({ instance, size: initialSize, zoom: initalZoom }) => { const [ready, setReady] = useState(false); - const [lensPosition, setLensPosition] = useState({ x: 0, y: 0 }); const [imagePosition, setImagePosition] = useState({ x: 0, y: 0 }); const [opacity, setOpacity] = useState(0); @@ -157,7 +156,7 @@ export const Magnifier: React.FC = ({ instance, size: initialSiz return (
= ({ instance, size: initialSiz }} width={`${box.width * zoom.current}px`} height={`${box.height * zoom.current}px`} - src={instance.props.src} alt="" + src={instance.props.src} + alt="" /> )}
-- cgit