<html>
<body onwheel="myFunction(event)">
<h1>WheelEvent deltaMode Property</h1>
<p>Scroll this page to see the length unit of the delta values property.</p>
<p><strong>Note:</strong> 0 = pixels, 1 = lines, 2 = pages.</p>
<p id="demo"></p>
<script>
function myFunction(event) {
var x = event.deltaMode;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_event_wheel_deltamode by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:03:01 GMT -->
</html>