diff --git a/index.html b/index.html index cdb73e2d..7c3189bb 100644 --- a/index.html +++ b/index.html @@ -87,7 +87,7 @@ -
No active stream
+
No active stream
diff --git a/static/main.js b/static/main.js index 70f1c214..2a099712 100644 --- a/static/main.js +++ b/static/main.js @@ -281,12 +281,15 @@ function clickHotspotImage(event) { window.addEventListener('wheel', function(e) { multiplier = 1/100; z_delta = e.deltaY * multiplier * focusVelocity; - if ((document.getElementById("scrollFocusCheck").checked == true) && (e.target.parentNode.classList.value == "column middle")) { + if ((document.getElementById("scrollFocusCheck").checked == true) && (e.target.parentNode.classList.value == "scrolltarget")) { console.log(z_delta); console.log(e.target.parentNode.classList.value); // Make a position request safeRequest("POST", baseURI+"/stage/position", { "absolute": false, "z": z_delta}, keyMoveCallback) } + else { + console.log("Scroll-to-focus inactive") + } }); // Keyboard to move