This module includes abstractions for handling mouse events.
Custom event listener for mousedown that returns the mouse Position and the classes of the target element that was clicked.
Custom event listener for wheel that returns the mouse Position and the ScrollDirection of the wheel.
Mouse position.
Mouse position as coordinate record.
Two dimensional vector that can represent a point or direction.
Delta/difference vector between two mouse Positions.
delta (Position { x = 50, y = 10 }) (Position { x = 20, y = -10 }) == { x = -30, y = -20 }
delta (Position { x = 50, y = 10 }) (Position { x = 20, y = -10 }) == { x = -30, y = -20 }Scroll wheel direction.
Custom event listener for
mousemovethat returns the mousePosition.