Normalize wheel delta. This function is re-exported from normalize-wheel for convenience. It helps normalize the wheel event's delta values (spinX, spinY, pixelX, pixelY) across different browsers.
normalize-wheel
https://www.npmjs.com/package/normalize-wheel
document.addEventListener('wheel', (event) => { const normalized = normalizeWheel(event); console.log(normalized); // => { spinX: -0, spinY: 1.25, pixelX: -0, pixelY: 125 }}); Copy
document.addEventListener('wheel', (event) => { const normalized = normalizeWheel(event); console.log(normalized); // => { spinX: -0, spinY: 1.25, pixelX: -0, pixelY: 125 }});
Normalize wheel delta. This function is re-exported from
normalize-wheel
for convenience. It helps normalize the wheel event's delta values (spinX, spinY, pixelX, pixelY) across different browsers.