diff --git a/src/App.tsx b/src/App.tsx index 4c495f8..595aa8a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -829,7 +829,7 @@ function App() { }; }, [activeTabId, showSidebar]); - const startSidebarResize = (e: React.MouseEvent) => { + const startSidebarResize = (e: React.PointerEvent) => { e.preventDefault(); e.stopPropagation(); setResizeStartState({ startX: e.clientX, startWidth: sidebarWidth }); @@ -1183,7 +1183,7 @@ function App() { {tabs.length > 1 && ( - +
{tabs.map((tab, index) => ( @@ -1194,7 +1194,7 @@ function App() { ))}
- +
)}
@@ -1228,7 +1228,7 @@ function App() { aria-orientation="vertical" aria-label="Resize sidebar" tabIndex={0} - onMouseDown={startSidebarResize} + onPointerDown={startSidebarResize} onKeyDown={(e) => { if (e.key === 'ArrowRight') { e.preventDefault();