horizontal scrolling where applicable can now be done via vertical mousewheel movement

This commit is contained in:
Disco DeDisco
2026-03-25 00:05:52 -04:00
parent 9698d70164
commit 2f6fc1ff20
4 changed files with 29 additions and 13 deletions

View File

@@ -9,6 +9,15 @@ const initialize = (inputSelector) => {
};
};
const bindPaletteWheel = () => {
document.querySelectorAll('.palette-scroll').forEach(el => {
el.addEventListener('wheel', (e) => {
e.preventDefault();
el.scrollLeft += e.deltaY;
}, { passive: false });
});
};
const bindPaletteForms = () => {
document.querySelectorAll('form[action*="set_palette"]').forEach(form => {
form.addEventListener("submit", async (e) => {