diff --git a/src/componets/Sidebar.tsx b/src/componets/Sidebar.tsx index 3c2efd9..21b0c65 100644 --- a/src/componets/Sidebar.tsx +++ b/src/componets/Sidebar.tsx @@ -56,7 +56,7 @@ export default function Sidebar({ downloadProgress }: SidebarProps) { return next }) } - onContextMenu={() => { + onContextMenu={() => setRot(r => { let next = r - dir * 90 if (next >= 360) { @@ -68,7 +68,7 @@ export default function Sidebar({ downloadProgress }: SidebarProps) { } return next }) - }} + } />