Procházet zdrojové kódy

Make left/right scroll direction consistent

It was moving the entities left and right. Now, it moves
the camera left and right
master
Fen Dweller před 5 roky
rodič
revize
58a57b6105
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. +2
    -2
      macrovision.js

+ 2
- 2
macrovision.js Zobrazit soubor

@@ -2046,14 +2046,14 @@ document.addEventListener("DOMContentLoaded", () => {
// TODO: write some generic logic for this lol

document.querySelector("#scroll-left").addEventListener("mousedown", e => {
scrollDirection = 1;
scrollDirection = -1;
clearInterval(scrollHandle);
scrollHandle = setInterval(doXScroll, 1000 / 20);
e.stopPropagation();
});

document.querySelector("#scroll-right").addEventListener("mousedown", e => {
scrollDirection = -1;
scrollDirection = 1;
clearInterval(scrollHandle);
scrollHandle = setInterval(doXScroll, 1000 / 20);
e.stopPropagation();


Načítá se…
Zrušit
Uložit