X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=base_rules.js;h=4ee389fe7d451f28ef9c68e62f6cfd5c028aa527;hb=27a6d311f49e4c1ae9415f4dc4b79dfcb690c80d;hp=4627eb78e34aef0a152fc7009ae67fc644cb0cdf;hpb=3cc4a84559092337d916c83367a6b457d6ca2b02;p=xogo.git diff --git a/base_rules.js b/base_rules.js index 4627eb7..4ee389f 100644 --- a/base_rules.js +++ b/base_rules.js @@ -1013,11 +1013,10 @@ export default class ChessRules { // TODO: onpointerdown/move/up ? See reveal.js /controllers/touch.js } + // NOTE: not called if isDiagram, or genFenOnly removeListeners() { let container = document.getElementById(this.containerId); this.windowResizeObs.unobserve(container); - if (this.isDiagram) - return; //no listeners in this case if ('onmousedown' in window) { this.mouseListeners.forEach(ml => { document.removeEventListener(ml.type, ml.listener);