refactor(View): update ImageViewer component to handle zoom control click events

This commit is contained in:
ShiYu
2025-05-21 00:07:58 +08:00
parent 205bd0e0da
commit aba4dc8190

View File

@@ -264,7 +264,7 @@ const ImageViewer: React.FC<ImageViewerProps> = ({
<div className="zoom-controls">
<Space>
<Button icon={<ExpandOutlined />} onClick={(e) => resetTransform()} />
<Button icon={<ExpandOutlined />} onClick={(_e) => resetTransform()} />
<Button icon={<ZoomOutOutlined />} onClick={() => zoomOut(0.5)} />
<Button icon={<ZoomInOutlined />} onClick={() => zoomIn(0.5)} />
<Button icon={<RotateLeftOutlined />} onClick={() => setRotation(prev => prev - 90)} />