1.0.4 + Update dependencies + Remove rightclick + Fix auto updating

This commit is contained in:
2026-01-28 16:19:16 -07:00
parent c32a8c2cdd
commit 78885c8cd0
9 changed files with 87 additions and 81 deletions

View File

@@ -19,10 +19,15 @@ export default function RootLayout ({
getCurrentWindow().startDragging()
}
useEffect(() => {
const handler = (e: MouseEvent) => e.preventDefault()
document.addEventListener('contextmenu', handler)
return () => document.removeEventListener('contextmenu', handler)
}, [])
useEffect(() => {
document.body.addEventListener('mousedown', handleMouseDown as any)
return () =>
document.body.removeEventListener('mousedown', handleMouseDown as any)
return () => document.body.removeEventListener('mousedown', handleMouseDown as any)
}, [])
return (