We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36e24c8 commit bbeb6feCopy full SHA for bbeb6fe
js/widgets/widgetWindows.js
@@ -530,6 +530,15 @@ class WidgetWindow {
530
* @returns {void}
531
*/
532
destroy() {
533
+ if (this._dragTopHandler) {
534
+ document.removeEventListener("mouseup", this._dragTopHandler, true);
535
+ }
536
+ if (this._docMouseMoveHandler) {
537
+ document.removeEventListener("mousemove", this._docMouseMoveHandler, true);
538
539
+ if (this._docMouseDownHandler) {
540
+ document.removeEventListener("mousedown", this._docMouseDownHandler, true);
541
542
if (this._frame && this._frame.parentElement) {
543
this._frame.parentElement.removeChild(this._frame);
544
}
0 commit comments