useCursorTracking()

This hook is used to register callbacks whenever the cursor is hovering over an element.

The callback function returns both the x and y coordinates of the cursor relative to the element being tracked, as well as percentage the cursor is away from the top left corner of the element.

© 2022
🐞

Window Properties

WindowWidth: undefinedpx

WindowHeight: undefinedpx