Only scroll-focus when hoverring over preview
This commit is contained in:
parent
3a35e7f03c
commit
4d9de7652b
2 changed files with 17 additions and 15 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ img {
|
|||
|
||||
.left, .right {
|
||||
background-color: #f4f4f4;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
.left{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue