UNPKG

cursor-position

Version:

Simple module for getting the current mouse position in element or window.

12 lines (11 loc) 292 B
interface options { event?: Event | MouseEvent | TouchEvent; absolute?: boolean; scroll?: boolean; } declare type cursorPosition = { x: number; y: number; }; declare const GetCursorPosition: (opt?: options | undefined) => cursorPosition; export default GetCursorPosition;