From bf63c33552bfc6f3dcf0149a06ba7a6b2661aec6 Mon Sep 17 00:00:00 2001 From: David Banks Date: Fri, 12 Oct 2018 13:08:29 +0100 Subject: [PATCH] All: subtract grChipOffsetX/Y from coordiates given to user so the match the PNGs --- expertWires.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expertWires.js b/expertWires.js index a82c9c4..6b8ef80 100644 --- a/expertWires.js +++ b/expertWires.js @@ -487,7 +487,7 @@ function handleClick(e){ var cx = Math.round(x*grChipSize/600); var cy = Math.round(y*grChipSize/600); // prepare two lines of status report - var s1='x: ' + cx + ' y: ' + cy; + var s1='x: ' + (cx - grChipOffsetX) + ' y: ' + (cy - grChipOffsetY); var s2='node: ' + w + ' ' + nodeName(w); if(w==-1) { setStatus(s1); // no node found, so report only coordinates