Although it's a basic question, I haven't been able to find an answer. However, since it's such a basic question, not much of an explanation can be provided. Unfortunately, I do not have a laptop that I can use to test this.
ele.onwheel = function(e) {
}
Is the onwheel
event triggered by "scrolling" a laptop's trackpad?
Yes, it does. Even deltaY
is available, but it's value depends on current trackpad or mouse.