getMousePosition static method

Point getMousePosition(
  1. Event e, [
  2. Element? container
])

Gets normalized mouse position from a DOM event relative to the container (border excluded) or to the whole page if not specified.

Implementation

external static Point getMousePosition(Event e, [Element? container]);