Skip to content

Commit

Permalink
Fix: drag below threshold left dragging state on (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
kurkle authored Jun 1, 2021
1 parent 4fde5dc commit bdc1d1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ export function mouseUp(chart, event) {
state.dragStart = state.dragEnd = null;

if (distance <= threshold) {
state.dragging = false;
chart.update('none');
return;
}

Expand Down

0 comments on commit bdc1d1f

Please sign in to comment.