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);
}
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);
}
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);
}
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);