Skip to content

Commit

Permalink
fix mwheel
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed Jun 18, 2019
1 parent d9a89a1 commit 9917dba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 99_start.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ document.addEventListener("wheel", (event) => {
}

if (movelist.scrollHeight <= movelist.clientHeight) {
if (event.deltaY && event.deltaY < 0) prev_next_queue.push(hub.prev.bind(hub));
if (event.deltaY && event.deltaY > 0) prev_next_queue.push(hub.next.bind(hub));
if (event.deltaY && event.deltaY < 0) input_queue.push(hub.prev.bind(hub));
if (event.deltaY && event.deltaY > 0) input_queue.push(hub.next.bind(hub));
return;
}

Expand All @@ -181,8 +181,8 @@ document.addEventListener("wheel", (event) => {
}

if (allow) {
if (event.deltaY && event.deltaY < 0) prev_next_queue.push(hub.prev.bind(hub));
if (event.deltaY && event.deltaY > 0) prev_next_queue.push(hub.next.bind(hub));
if (event.deltaY && event.deltaY < 0) input_queue.push(hub.prev.bind(hub));
if (event.deltaY && event.deltaY > 0) input_queue.push(hub.next.bind(hub));
}
});

Expand Down

0 comments on commit 9917dba

Please sign in to comment.