WheelEvent deltaY Property in JavaScript
WheelEvent deltaY Property in JavaScript
The deltaY property is a read-only property and it is used to return positive value when scrolling down, and a negative value when scrolling up else 0.
Syntax:-
Its syntax is:- event.deltaY
Return:-
Its return is:- double denoting scrolling direction of mouse wheel