1 Commits

Author SHA1 Message Date
4702d9387e fix: remove selction on resizing or moving the window
Some checks failed
Release / create-release (push) Has been cancelled
Release / build-linux (push) Has been cancelled
Release / build-windows (push) Has been cancelled
Release / build-macos (push) Has been cancelled
2026-04-26 15:10:15 +02:00
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export default function ResizeHandles() {
{handles.map(({ edge, style }) => ( {handles.map(({ edge, style }) => (
<div <div
key={edge} key={edge}
onMouseDown={e => { if (e.button === 0) win.startResizeDragging(edge); }} onMouseDown={e => { if (e.button === 0) { e.preventDefault(); win.startResizeDragging(edge); } }}
style={{ position: "fixed", zIndex: 9999, ...style }} style={{ position: "fixed", zIndex: 9999, ...style }}
/> />
))} ))}

View File

@ -23,6 +23,7 @@ export default function TitleBar({ onOpenSettings }: Props) {
function handleDragMouseDown(e: React.MouseEvent) { function handleDragMouseDown(e: React.MouseEvent) {
if (e.button === 0) { if (e.button === 0) {
e.preventDefault();
getCurrentWindow().startDragging(); getCurrentWindow().startDragging();
} }
} }