Skip to content

System.Context.currentEvent.offsetY

Description

Obtain the vertical offset of the event target relative to the element that triggers the event.

Grammar

System.Context.currentEvent.offsetY

Code Example

Obtain the horizontal offset of the current triggering event.

const offsetY = System.Context.currentEvent.offsetY;
console.log(offsetY)