mirror of https://github.com/lgc-4/DataTools3.git
add help tab and some usability quirk
This commit is contained in:
parent
bd331afc6c
commit
cce51d3b9c
|
@ -32,9 +32,13 @@ document.addEventListener("mousedown", (e) => {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (e.target == document.getElementById("playground")) {
|
||||||
|
ConnectionController.unselect();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (e.button == 1 || e.button == 2) {
|
if (e.button == 1 || e.button == 2) {
|
||||||
draggingCamera = true;
|
draggingCamera = true;
|
||||||
|
document.body.style.cursor = "grabbing";
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -50,6 +54,7 @@ document.addEventListener("mouseup", (e) => {
|
||||||
}
|
}
|
||||||
if (e.button == 1 || e.button == 2) {
|
if (e.button == 1 || e.button == 2) {
|
||||||
draggingCamera = false;
|
draggingCamera = false;
|
||||||
|
document.body.style.cursor = "";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
12
index.html
12
index.html
|
@ -21,6 +21,7 @@
|
||||||
<span class="menuBarItem">File</span>
|
<span class="menuBarItem">File</span>
|
||||||
<span class="menuBarItem">Presets</span>
|
<span class="menuBarItem">Presets</span>
|
||||||
<span class="menuBarItem">Elements</span>
|
<span class="menuBarItem">Elements</span>
|
||||||
|
<span class="menuBarItem">Help</span>
|
||||||
</div>
|
</div>
|
||||||
<div id="menuContent">
|
<div id="menuContent">
|
||||||
<div id="menuContentFile" class="menuContentBox">
|
<div id="menuContentFile" class="menuContentBox">
|
||||||
|
@ -65,6 +66,17 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="menuContentHelp" class="menuContentBox">
|
||||||
|
<p>
|
||||||
|
<strong>Controls:</strong>
|
||||||
|
</p>
|
||||||
|
<ul>
|
||||||
|
<li><strong>Click</strong> to connect elements</li>
|
||||||
|
<li><strong>Drag the top of a box</strong> to move it</li>
|
||||||
|
<li><strong>Scroll</strong> to zoom</li>
|
||||||
|
<li><strong>Right- / Middle-Click</strong> to move the view</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="playground"></div>
|
<div id="playground"></div>
|
||||||
|
|
Loading…
Reference in New Issue