my mistake this time
All checks were successful
/ deploy (push) Successful in 39s

This commit is contained in:
Minecon724 2024-10-11 11:50:04 +02:00
parent 83f53e0ff6
commit 9ec6ff9b65
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8

View file

@ -99,10 +99,10 @@ function dismissPopup(hideMarker) {
sidebarContent.onclick = dismissPopup;
function onNodeClick(ev, node, elem) {
function onNodeClick(ev, node, clicked) {
console.log('b')
if (opened != null) return;
const rect = elem.getBoundingClientRect();
const rect = clicked.getBoundingClientRect();
nodesElement.style.opacity = 1;
@ -125,7 +125,7 @@ function onNodeClick(ev, node, elem) {
ele.style.height = window.innerHeight / 3 + 'px';
sidebarContent.style.backgroundColor = "#111";
opened = [ele, elem, node];
opened = [ele, clicked, node];
ev.stopPropagation();
}