This commit is contained in:
Maciej Caderek
2022-02-23 03:58:46 +01:00
parent ce3167fc7c
commit 59b54c56c7
82 changed files with 365 additions and 61 deletions

View File

@@ -221,6 +221,17 @@ const main = async () => {
el.preventDefault();
});
window.addEventListener("resize", () => {
setState(
"layout",
window.innerWidth < window.innerHeight
? "single"
: window.innerWidth < 1366
? "double"
: "triple"
);
});
if (!state.mobile) {
const keyMapping: { [key: string]: () => void } = {
ArrowLeft: handlers.prev,