Skip to content

Commit 234801d

Browse files
committed
Unbind some event listeners for camera2d
1 parent 09181b1 commit 234801d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plots/gl2d/scene2d.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,9 @@ proto.destroy = function() {
374374
this.fullData = null;
375375
this.glplot = null;
376376
this.stopped = true;
377+
this.camera.mouseListener.enabled = false;
378+
this.mouseContainer.removeEventListener('wheel', this.camera.wheelListener);
379+
this.camera = null;
377380
};
378381

379382
proto.plot = function(fullData, calcData, fullLayout) {

0 commit comments

Comments
 (0)