Commit af90ae41 authored by Jeremy Fischer's avatar Jeremy Fischer
Browse files

Fix Zoom Button Direction

Change Graph Nav
parent 9630df20
......@@ -4,6 +4,6 @@
</svg>
</div>
<a style="position: absolute; bottom: 1em; right: 1em;" onclick="graphZoom(1);" class="btn-floating btn red"> <b style="font-size: 1.5em;">+</b> </a>
<a style="position: absolute; bottom: 4em; right: 1em;" onclick="graphZoom(-1);" class="btn-floating btn red"> <b style="font-size: 1.5em;">-</b> </a>
<a style="position: absolute; bottom: 1em; right: 1em;" onclick="graphZoom(-1);" class="btn-floating btn red"> <b style="font-size: 1.5em;">+</b> </a>
<a style="position: absolute; bottom: 4em; right: 1em;" onclick="graphZoom(1);" class="btn-floating btn red"> <b style="font-size: 1.5em;">-</b> </a>
</div>
\ No newline at end of file
......@@ -350,7 +350,7 @@ if (declare_load("appclient") !== TRUE)
function node_start_drag(event){
draggingNodeOffsetX = 0;
draggingNodeOffsetY = 0;
console.log(event);
if(event.buttons != 1) return;
currentDragNode = "";
if(event.target.id.substring(0,5) == "node_") currentDragNode = event.target.id.substring(5);
if(event.target.parentElement.id.substring(0,5) == "node_") currentDragNode = event.target.parentElement.id.substring(5);
......@@ -387,7 +387,7 @@ if (declare_load("appclient") !== TRUE)
graph.style.left = "-" + (graph.offsetWidth - graphView.offsetWidth) / 2;
graph.style.top = "-" + (graph.offsetHeight - graphView.offsetHeight) / 2;
graphView.onmousedown = function(event) {
if((event.target == graph || event.target == graphView))
if((event.target == graph || event.target == graphView) && (event.buttons == 3 || event.buttons == 4))
graphMousePressed = true;
document.getElementById("dynamicStyle").innerHTML = '#graph{transition: none;}';
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment