Commit 4d9de765 authored by Joel Collins's avatar Joel Collins
Browse files

Only scroll-focus when hoverring over preview

parent 3a35e7f0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -116,8 +116,9 @@ function clickHotspotImage(event) {
window.addEventListener('wheel', function(e) {
    multiplier = 1/100;
    z_delta = e.deltaY * multiplier * focusVelocity;
    if (document.getElementById("scrollFocusCheck").checked == true) {
    if ((document.getElementById("scrollFocusCheck").checked == true) && (e.target.parentNode.classList["value"] == "column middle")) {
        console.log(z_delta);
        console.log(e.target.parentNode.classList["value"]);
        // Make a position request
        safeRequest("POST", baseURI+"/position", { "absolute": false, "z": z_delta}, keyMoveCallback)
    }
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ img {

.left, .right {
  background-color: #f4f4f4;
  overflow-y: scroll;
}

.left{