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

This commit is contained in:
2026-04-26 15:10:15 +02:00
parent 5a747222fc
commit 4702d9387e
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export default function ResizeHandles() {
{handles.map(({ edge, style }) => (
<div
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 }}
/>
))}

View File

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