This commit is contained in:
parent
83f53e0ff6
commit
9ec6ff9b65
1 changed files with 3 additions and 3 deletions
|
@ -99,10 +99,10 @@ function dismissPopup(hideMarker) {
|
||||||
|
|
||||||
sidebarContent.onclick = dismissPopup;
|
sidebarContent.onclick = dismissPopup;
|
||||||
|
|
||||||
function onNodeClick(ev, node, elem) {
|
function onNodeClick(ev, node, clicked) {
|
||||||
console.log('b')
|
console.log('b')
|
||||||
if (opened != null) return;
|
if (opened != null) return;
|
||||||
const rect = elem.getBoundingClientRect();
|
const rect = clicked.getBoundingClientRect();
|
||||||
|
|
||||||
nodesElement.style.opacity = 1;
|
nodesElement.style.opacity = 1;
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ function onNodeClick(ev, node, elem) {
|
||||||
ele.style.height = window.innerHeight / 3 + 'px';
|
ele.style.height = window.innerHeight / 3 + 'px';
|
||||||
sidebarContent.style.backgroundColor = "#111";
|
sidebarContent.style.backgroundColor = "#111";
|
||||||
|
|
||||||
opened = [ele, elem, node];
|
opened = [ele, clicked, node];
|
||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue