hammerspoon2-docs
    Preparing search index...

    Function makeScrollWheelEvent

    • Create a scroll wheel event at the given position. Coordinates are in Hammerspoon screen coordinates (top-left origin, y increases downward).

      Parameters

      • deltaX: number

        Horizontal scroll amount in lines (positive = right)

      • deltaY: number

        Vertical scroll amount in lines (positive = down)

      • x: number

        Horizontal position in Hammerspoon screen coordinates

      • y: number

        Vertical position in Hammerspoon screen coordinates

      Returns HSEventTapEvent | null

      An HSEventTapEvent, or null if the event could not be created