This commit is contained in:
Stephan Richter
2020-10-11 13:58:55 +02:00
parent 8e747cb2a0
commit 7774b10871
2 changed files with 5 additions and 4 deletions

View File

@@ -128,9 +128,10 @@ function place(data){
}
function planClick(ev){
//console.log('bodyClick:',ev);
var x = Math.floor(ev.clientX/SQUARE);
var y = Math.floor(ev.clientY/SQUARE);
//console.log('planClick:',ev);
var plan=$(PLAN).get(0);
var x = Math.floor((plan.scrollLeft+ev.clientX)/SQUARE);
var y = Math.floor((plan.scrollTop+ev.clientY)/SQUARE);
switch (mode){
case undefined: