diff --git a/app/components/Sidebar/Right.tsx b/app/components/Sidebar/Right.tsx index e0f6afaa3..3861a0ca0 100644 --- a/app/components/Sidebar/Right.tsx +++ b/app/components/Sidebar/Right.tsx @@ -50,7 +50,8 @@ function Right({ children, border, className }: Props) { } }, []); - const handleMouseDown = React.useCallback(() => { + const handleMouseDown = React.useCallback((event) => { + event.preventDefault(); setResizing(true); }, []); diff --git a/app/components/Sidebar/Sidebar.tsx b/app/components/Sidebar/Sidebar.tsx index a51e7cb90..d92039b06 100644 --- a/app/components/Sidebar/Sidebar.tsx +++ b/app/components/Sidebar/Sidebar.tsx @@ -94,6 +94,7 @@ const Sidebar = React.forwardRef(function _Sidebar( const handleMouseDown = React.useCallback( (event) => { + event.preventDefault(); setOffset(event.pageX - width); setResizing(true); setAnimating(false);