Lower promote-gesture threshold from 75% to 50% of sibling pane

This commit is contained in:
megaproxy 2026-05-25 20:32:49 +01:00
parent 150e5f09cb
commit 8c7886866c

View file

@ -18,7 +18,9 @@ import { type Box, type GutterInfo, MIN_PANE_PX } from "./tree";
* On release while armed, `onPromote` fires.
*/
const HITBOX_PX = 8;
const PROMOTE_TRIGGER_FRAC = 0.75;
/** Cursor must reach this fraction across the sibling pane (in the exit
* direction) to arm the promote gesture. 0.5 = middle of the sibling. */
const PROMOTE_TRIGGER_FRAC = 0.5;
export default function Gutter({
info,