From e1d77f878e90d89d81633d915e270914928e9764 Mon Sep 17 00:00:00 2001 From: adplantade Date: Mon, 29 Jun 2020 16:46:08 +0200 Subject: [PATCH] =?UTF-8?q?correctifs=20par=20rapport=20=C3=A0=20des=20err?= =?UTF-8?q?eurs=20console?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/index.html b/code/index.html index a2370fc..ad5ebd2 100644 --- a/code/index.html +++ b/code/index.html @@ -330,10 +330,11 @@ */ function rotationManager(e) { + var mouseOnRes = mousePos[0].match(/[R]/g)!=null; canvasNumber=e.currentTarget.id.substring(6); document.getElementById("canvas"+mousePos[0]).classList.remove('vitrail-select'); - if(mousePos[0].match(/[R]/g)!=null && canvasNumber!="R") + if(mouseOnRes && canvasNumber!="R") { if(!isVisible(canvasNumber)) { @@ -445,6 +446,8 @@ function isVisible(what) { + if(what.includes("R")) + return eval("tabR["+what.substring(1)+"][0]"); return eval("tab"+what+"[0]"); }