horizontal scrolling where applicable can now be done via vertical mousewheel movement
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user