mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 13:32:28 -05:00
clean up in deactivate
This commit is contained in:
parent
cc50a14e1d
commit
dd27974d07
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue