Scroll wheel fix

This commit is contained in:
2026-05-19 15:58:56 -04:00
parent 562494a967
commit 0fea301af1
+5
View File
@@ -3282,6 +3282,11 @@ function wireDeliveryLineEvents(line) {
} }
if (packCountInput) { if (packCountInput) {
// Prevent accidental value changes when users scroll while focused.
packCountInput.addEventListener('wheel', (event) => {
event.preventDefault();
}, { passive: false });
packCountInput.addEventListener('input', () => { packCountInput.addEventListener('input', () => {
updateDeliveryLineQuantityDisplay(line); updateDeliveryLineQuantityDisplay(line);
}); });