Skip to content

Commit 980db5a

Browse files
committed
fix(core): modify HIT_DISTANCE_BUFFER to 2 to improve hit accuracy #WIK-19887
1 parent 983b415 commit 980db5a

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.changeset/gentle-adults-hunt.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@plait/core': patch
3+
---
4+
5+
modify HIT_DISTANCE_BUFFER to 2 to improve hit accuracy #WIK-19887
6+
7+
if hit multiple elements, return the first element in flow chart scenario, so reduce the buffer to 2

packages/core/src/constants/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ export const PRESS_AND_MOVE_BUFFER = 3;
2626

2727
export const DRAG_SELECTION_PRESS_AND_MOVE_BUFFER = 10;
2828

29-
export const HIT_DISTANCE_BUFFER = 5;
29+
export const HIT_DISTANCE_BUFFER = 2;

0 commit comments

Comments
 (0)