File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export function mouseMove(chart: Chart, event: MouseEvent) {
45
45
if ( state . dragStart ) {
46
46
state . dragging = true
47
47
state . dragEnd = event
48
- chart . update ( 'none' )
48
+ chart . draw ( )
49
49
}
50
50
}
51
51
@@ -58,7 +58,7 @@ function keyDown(chart: Chart, event: KeyboardEvent) {
58
58
removeHandler ( chart , 'keydown' )
59
59
state . dragging = false
60
60
state . dragStart = state . dragEnd = undefined
61
- chart . update ( 'none' )
61
+ chart . draw ( )
62
62
}
63
63
64
64
function getPointPosition ( event : MouseEvent , chart : Chart ) {
@@ -203,12 +203,12 @@ export function mouseUp(chart: Chart, event: MouseEvent) {
203
203
const distanceY = directionEnabled ( mode , 'y' , chart ) ? rect . height : 0
204
204
const distance = Math . sqrt ( distanceX * distanceX + distanceY * distanceY )
205
205
206
- // Remove drag start and end before chart update to stop drawing selected area
206
+ // Remove drag start and end before chart render to stop drawing selected area
207
207
state . dragStart = state . dragEnd = undefined
208
208
209
209
if ( distance <= threshold ) {
210
210
state . dragging = false
211
- chart . update ( 'none' )
211
+ chart . draw ( )
212
212
return
213
213
}
214
214
You can’t perform that action at this time.
0 commit comments