Contents

scrollWheel(with:)

Informs the view that the mouse’s scroll wheel has moved.

Declaration

@MainActor @preconcurrency override dynamic func scrollWheel(with event: NSEvent)

Parameters

  • event:

    An object encapsulating information about the wheel-scrolling event.

Discussion

The view handles the event instead of passing it to the next responder. See NSResponder for more information about the responder chain.

See Also

Handling mouse input