HTML | DOM WheelEvent deltaY Property
The WheelEvent.deltaY property in HTML is used to return a positive double value when the web page is scrolled down, and a negative double value when the page is scrolled up, else it returns zero. It is a read-only property
Return Value: It returns a double value which indicates the scrolling direction of the mouse wheel.
- A positive double value represents mouse is scrolled down.
- A negative double value represents mouse is scrolled up.
Supported Browsers: The browser supported by deltaY property are listed below:
- Apple Safari Not supported
- Google Chrome 31.0
- Firefox 17.0
- Opera 18.0
- Internet Explorer
Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML course.