diff --git a/src/ui/React/LogBoxManager.tsx b/src/ui/React/LogBoxManager.tsx index d82bcdad1..ad99582fb 100644 --- a/src/ui/React/LogBoxManager.tsx +++ b/src/ui/React/LogBoxManager.tsx @@ -290,7 +290,9 @@ function LogWindow(props: IProps): React.ReactElement { return !(bounds.right < 0 || bounds.bottom < 0 || bounds.left > innerWidth || bounds.top > outerWidth); }; - const boundToBody = (e: DraggableEvent): void | false => { + const onDrag = (e: DraggableEvent): void | false => { + e.preventDefault(); + // bound to body if ( e instanceof MouseEvent && (e.clientX < 0 || e.clientY < 0 || e.clientX > innerWidth || e.clientY > innerHeight) @@ -302,7 +304,7 @@ function LogWindow(props: IProps): React.ReactElement { const minConstraints: [number, number] = [150, 33]; return ( - +