oh my god mobile users sorry
This commit is contained in:
parent
a4864065e6
commit
dc79ef0753
|
|
@ -3,7 +3,7 @@
|
||||||
+ Machines Update
|
+ Machines Update
|
||||||
+ More plans / feedback at https://docs.google.com/document/u/4/d/1R8xljj_J-K5oU-9y4louwplQmM-ZBvUfXmhbgj5LYdk/edit
|
+ More plans / feedback at https://docs.google.com/document/u/4/d/1R8xljj_J-K5oU-9y4louwplQmM-ZBvUfXmhbgj5LYdk/edit
|
||||||
|
|
||||||
[Version 1.5.1 - Apr. 2022]
|
[Version 1.5.1 - Apr. 19, 2022]
|
||||||
+ Hold Shift to draw lines
|
+ Hold Shift to draw lines
|
||||||
+ Info Screen now shows category info
|
+ Info Screen now shows category info
|
||||||
+ Info Screen shows undiscovered elements
|
+ Info Screen shows undiscovered elements
|
||||||
|
|
|
||||||
|
|
@ -7248,6 +7248,7 @@
|
||||||
if (evt.touches) {
|
if (evt.touches) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
evt = evt.touches[0];
|
evt = evt.touches[0];
|
||||||
|
isMobile = true;
|
||||||
}
|
}
|
||||||
var rect = canvas.getBoundingClientRect();
|
var rect = canvas.getBoundingClientRect();
|
||||||
return {
|
return {
|
||||||
|
|
@ -7308,7 +7309,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
startPos = startPos || lastPos
|
startPos = startPos || lastPos
|
||||||
if (!(elements[currentElement].tool || elements[currentElement].category==="tools")) {
|
if (!(isMobile || elements[currentElement].tool || elements[currentElement].category==="tools")) {
|
||||||
var coords = lineCoords(startPos.x,startPos.y,mouseX,mouseY);
|
var coords = lineCoords(startPos.x,startPos.y,mouseX,mouseY);
|
||||||
}
|
}
|
||||||
else { var coords = mouseRange(mouseX,mouseY); }
|
else { var coords = mouseRange(mouseX,mouseY); }
|
||||||
|
|
@ -7430,10 +7431,13 @@
|
||||||
if (currentElement == "pick" || currentElement == "lookup") {
|
if (currentElement == "pick" || currentElement == "lookup") {
|
||||||
var coords = [[mouseX,mouseY]];
|
var coords = [[mouseX,mouseY]];
|
||||||
}
|
}
|
||||||
else {
|
else if (!isMobile) {
|
||||||
startPos = startPos || lastPos
|
startPos = startPos || lastPos
|
||||||
var coords = lineCoords(startPos.x,startPos.y,mouseX,mouseY);
|
var coords = lineCoords(startPos.x,startPos.y,mouseX,mouseY);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
var coords = mouseRange(mouseX,mouseY);
|
||||||
|
}
|
||||||
// For each x,y in coords
|
// For each x,y in coords
|
||||||
for (var i = 0; i < coords.length; i++) {
|
for (var i = 0; i < coords.length; i++) {
|
||||||
var x = coords[i][0];
|
var x = coords[i][0];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue