fix: remove selction on resizing or moving the window
This commit is contained in:
@ -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 }}
|
||||
/>
|
||||
))}
|
||||
|
||||
@ -23,6 +23,7 @@ export default function TitleBar({ onOpenSettings }: Props) {
|
||||
|
||||
function handleDragMouseDown(e: React.MouseEvent) {
|
||||
if (e.button === 0) {
|
||||
e.preventDefault();
|
||||
getCurrentWindow().startDragging();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user