All: subtract grChipOffsetX/Y from coordiates given to user so the match the PNGs

This commit is contained in:
David Banks 2018-10-12 13:08:29 +01:00
parent 9760663cc1
commit bf63c33552
1 changed files with 1 additions and 1 deletions

View File

@ -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