diff --git a/.changeset/panel-resize-fps.md b/.changeset/panel-resize-fps.md new file mode 100644 index 00000000..9ffe7eae --- /dev/null +++ b/.changeset/panel-resize-fps.md @@ -0,0 +1,3 @@ +### Bug Fixes + +- **Smooth panel resizing** - Dragging the terminal dock, sidebars or a split pane no longer refits the terminal and reallocates the data grid on every frame. The terminal holds its grid during the drag and refits once on release, and window resizes fit once the drag settles. The terminal dock has a proper handle with a wider grab area, and double-clicking it resets the height. diff --git a/src/app.css b/src/app.css index 72a5e2c9..17e5bb49 100644 --- a/src/app.css +++ b/src/app.css @@ -634,9 +634,11 @@ html[data-os="linux"] { --window-radius: 8px; } /* Lock cursor globally while drag is active so it never flickers mid-drag */ body.is-resizing-x, - body.is-resizing-x * { cursor: col-resize !important; } + body.is-resizing-x * { cursor: col-resize !important; user-select: none !important; -webkit-user-select: none !important; } body.is-resizing-y, - body.is-resizing-y * { cursor: row-resize !important; } + body.is-resizing-y * { cursor: row-resize !important; user-select: none !important; -webkit-user-select: none !important; } + /* Skip xterm hit-testing while dragging any panel resize handle */ + html[data-resizing] .xterm { pointer-events: none !important; } /* An open modal dialog locks `pointer-events: none` on (bits-ui), and only the dialog's own content/overlay opt back in. Dialogs that inset diff --git a/src/lib/components/DataTable.svelte b/src/lib/components/DataTable.svelte index c97a4b6f..2de5586d 100644 --- a/src/lib/components/DataTable.svelte +++ b/src/lib/components/DataTable.svelte @@ -1,5 +1,6 @@