WheelEvent deltaZ Property in JavaScript
WheelEvent deltaZ Property in JavaScript
The deltaZ property is a read-only property and it is used to return a positive value when scrolling in and a negative value when scrolling out else 0. However, most mouse devices do not have capability to scroll along z-aixs. Thus, the value will be 0.
Syntax:-
Its syntax is:- event.deltaZ
Return:-
Its return is:- double denoting scrolling direction of mouse wheel