From dd27974d071ccdaccec5aa51c4c82940c1fa317e Mon Sep 17 00:00:00 2001 From: DD Date: Fri, 25 Aug 2017 14:00:30 -0400 Subject: [PATCH] clean up in deactivate --- src/containers/line-mode.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/containers/line-mode.jsx b/src/containers/line-mode.jsx index 9b61546c..1a84c394 100644 --- a/src/containers/line-mode.jsx +++ b/src/containers/line-mode.jsx @@ -250,6 +250,9 @@ class LineMode extends React.Component { } deactivateTool () { this.props.canvas.removeEventListener('mousewheel', this.onScroll); + this.tool.remove(); + this.tool = null; + this.hitResult = null; if (this.path) { this.path.setSelected(false); this.path = null;