Lower promote-gesture threshold from 75% to 50% of sibling pane
This commit is contained in:
parent
150e5f09cb
commit
8c7886866c
1 changed files with 3 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue