Brush crashes when mouse leaves and re-enters bounds
billyjanitsch opened this issue · comments
Billy Janitsch commented
To reproduce, in the Brush sandbox example:
- Click and hold the brush
- Move the mouse outside of the brush bounds
- Move it back inside the bounds
Here's the stack trace:
Uncaught TypeError: Cannot read property 'x' of null
at mouseDrag (Brush.js:108)
at handleChart (Brush.js:169)
at Object.onUpdate (Brush.js:198)
at handleCanvasInput (index.js:34)
at Object.onUpdate (index.js:68)
at CanvasInput.<anonymous> (index.js:126)
Might have been introduced in 9c50642. @nabeel-, would you mind investigating?