From 801c81f16af7127c5c3e4eddd2f0ee77c22e25fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 7 Jan 2021 15:32:27 +0100 Subject: [PATCH] Fix typing in TabMenu.ts --- wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js | 4 ++-- wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/TabMenu.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js index ca177e3882..5e2f3f021c 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js @@ -181,7 +181,7 @@ define(["require", "exports", "tslib", "../Dom/Change/Listener", "../Dom/Util", overlayLeft.className = "tabMenuOverlayLeft icon icon24 fa-angle-left"; overlayLeft.addEventListener("click", () => { const listWidth = list.clientWidth; - scrollMenu(list, list.scrollLeft - ~~(listWidth / 2), list.scrollLeft, list.scrollWidth, listWidth, 0); + scrollMenu(list, list.scrollLeft - ~~(listWidth / 2), list.scrollLeft, list.scrollWidth, listWidth, false); }); menu.insertBefore(overlayLeft, menu.firstChild); } @@ -198,7 +198,7 @@ define(["require", "exports", "tslib", "../Dom/Change/Listener", "../Dom/Util", overlayRight.className = "tabMenuOverlayRight icon icon24 fa-angle-right"; overlayRight.addEventListener("click", () => { const listWidth = list.clientWidth; - scrollMenu(list, list.scrollLeft + ~~(listWidth / 2), list.scrollLeft, list.scrollWidth, listWidth, 0); + scrollMenu(list, list.scrollLeft + ~~(listWidth / 2), list.scrollLeft, list.scrollWidth, listWidth, false); }); menu.appendChild(overlayRight); } diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/TabMenu.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/TabMenu.ts index e766fa51f2..21fdeddb77 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/TabMenu.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Ui/TabMenu.ts @@ -209,7 +209,7 @@ function rebuildMenuOverflow(menu: HTMLElement): void { overlayLeft.className = "tabMenuOverlayLeft icon icon24 fa-angle-left"; overlayLeft.addEventListener("click", () => { const listWidth = list.clientWidth; - scrollMenu(list, list.scrollLeft - ~~(listWidth / 2), list.scrollLeft, list.scrollWidth, listWidth, 0); + scrollMenu(list, list.scrollLeft - ~~(listWidth / 2), list.scrollLeft, list.scrollWidth, listWidth, false); }); menu.insertBefore(overlayLeft, menu.firstChild); } @@ -227,7 +227,7 @@ function rebuildMenuOverflow(menu: HTMLElement): void { overlayRight.className = "tabMenuOverlayRight icon icon24 fa-angle-right"; overlayRight.addEventListener("click", () => { const listWidth = list.clientWidth; - scrollMenu(list, list.scrollLeft + ~~(listWidth / 2), list.scrollLeft, list.scrollWidth, listWidth, 0); + scrollMenu(list, list.scrollLeft + ~~(listWidth / 2), list.scrollLeft, list.scrollWidth, listWidth, false); }); menu.appendChild(overlayRight); -- 2.20.1