Skip to content

Commit

Permalink
Reduces DRAG_TIMEOUT in mouse captor
Browse files Browse the repository at this point in the history
This should reduce cases were users "throw" the graph without feeling it
natural...
  • Loading branch information
jacomyal committed Oct 18, 2021
1 parent 4a5c2dc commit 9d4e33c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/captors/mouse.ts
Expand Up @@ -12,7 +12,7 @@ import Captor, { getX, getY, getWheelDelta, getMouseCoords } from "./captor";
/**
* Constants.
*/
const DRAG_TIMEOUT = 200;
const DRAG_TIMEOUT = 100;
const DRAGGED_EVENTS_TOLERANCE = 3;
const MOUSE_INERTIA_DURATION = 200;
const MOUSE_INERTIA_RATIO = 3;
Expand Down

0 comments on commit 9d4e33c

Please sign in to comment.