-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the wheel event #917
Labels
enhancement
New feature or request
Milestone
Comments
Checking current values with tryjsref_event_wheel_deltamode using this text: <!DOCTYPE html>
<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>
<br> <br> <br> <br> <br>
<br> <br> <br> <br> <br>
<br> <br> <br> <br> <br>
<br> <br> <br> <br> <br>
<script>
function myFunction(event) {
var x = event.deltaMode;
document.getElementById("demo").innerHTML =
'deltaMode=' + event.deltaMode +
', deltaY=' + event.deltaY;
}
</script>
</body>
</html> |
Linux Fedora 39:
Mac 14.4:
Windows 10:
|
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The current code uses the deprecated mousewheel and DOMMouseScroll events. This must be changed to use the standard wheel event.
The text was updated successfully, but these errors were encountered: