Scroll wheel fix
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user