Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3cd1c8becb | |||
| 4702d9387e |
Binary file not shown.
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 116 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 101 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 146 KiB After Width: | Height: | Size: 363 KiB |
@ -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 }}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user