fix(pane): 3-column grab zones with cursor offset
Splitter strips widen to border +/- 1 help-padded column so the thin border is easy to target; mousedown records the cursor's offset from the border column and drag subtracts it, so the border tracks the cursor instead of jumping. Padded columns must never overlap interactive content (rect-based hit grid). Dead one-off render harness scripts/_hv.ts removed. Tests cover far/inner-edge grabs and no-resize on padded-column clicks.
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
import { testRender } from "@opentui/solid";
|
||||
const { ThemeProvider } = await import("../src/context/ThemeContext");
|
||||
const { PaneRow } = await import("../src/components/PaneRow");
|
||||
process.env.XDG_CONFIG_HOME = import.meta.dir + "/../.harness/config-home";
|
||||
import { mkdtempSync } from "node:fs"; import { tmpdir } from "node:os"; import { join } from "node:path";
|
||||
process.env.XDG_CONFIG_HOME = mkdtempSync(join(tmpdir(), "hv-"));
|
||||
const setup = (await testRender(
|
||||
() => React.createElement...
|
||||
));
|
||||
Reference in New Issue
Block a user