mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-12 02:20:28 +08:00
refactor(View): update ImageViewer component to handle zoom control click events
This commit is contained in:
@@ -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)} />
|
||||
|
||||
Reference in New Issue
Block a user