Tutorial: System.getMousePosition

System.getMousePosition

Retrieves an object that contains the mouse position in virtual screen coordinates (left, top).

Example

fin.System.getMousePosition().then(mousePosition => console.log(mousePosition)).catch(err => console.log(err));