WheelEvent deltaX Property in JavaScript
WheelEvent deltaX Property in JavaScript
The deltaX property is a read-only property and it is used to return positive value when scrolling to right, and a negative value when scrolling to the left else 0. However, most mouse devices do not have the capability to move left or right, thus the value will be 0.
Syntax:-
Its syntax is:- event.deltaX
Return:-
Its return is:- double denoting scrolling direction of mouse wheel