From bdc1d1f3f3f0133cfe15950530a670efd03076df Mon Sep 17 00:00:00 2001 From: Jukka Kurkela Date: Tue, 1 Jun 2021 15:05:13 +0300 Subject: [PATCH] Fix: drag below threshold left dragging state on (#527) --- src/handlers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/handlers.js b/src/handlers.js index 719ec3f3..8836e95c 100644 --- a/src/handlers.js +++ b/src/handlers.js @@ -106,6 +106,8 @@ export function mouseUp(chart, event) { state.dragStart = state.dragEnd = null; if (distance <= threshold) { + state.dragging = false; + chart.update('none'); return; }