Make it so you can rightclick the logo to go the other way
This commit is contained in:
@@ -56,6 +56,19 @@ export default function Sidebar({ downloadProgress }: SidebarProps) {
|
|||||||
return next
|
return next
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
onContextMenu={() => {
|
||||||
|
setRot(r => {
|
||||||
|
let next = r - dir * 90
|
||||||
|
if (next >= 360) {
|
||||||
|
next = 360
|
||||||
|
setDir(-1)
|
||||||
|
} else if (next <= 0) {
|
||||||
|
next = 0
|
||||||
|
setDir(1)
|
||||||
|
}
|
||||||
|
return next
|
||||||
|
})
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<nav className="nav-links">
|
<nav className="nav-links">
|
||||||
|
|||||||
Reference in New Issue
Block a user