bugfix
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>de.srsoftware</groupId>
|
||||
<artifactId>web4rail</artifactId>
|
||||
<version>0.6.3</version>
|
||||
<version>0.6.4</version>
|
||||
<name>Web4Rail</name>
|
||||
<packaging>jar</packaging>
|
||||
<description>Java Model Railway Control</description>
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user