mwg API
    Preparing search index...

    Function wheelActionFor

    • The documented default modifier convention: plain wheel scrolls vertically, Shift scrolls horizontally (for a game with wide content - ListView's own plain-wheel handling is a single column and does not need this), Ctrl/Cmd zooms. Exported so a game can override the convention itself rather than only being able to work around a baked-in one - unlike the browser's own inconsistent-across-platforms Ctrl+wheel-means-zoom behaviour, which this does not rely on: the modifier check happens here, not left to the browser to interpret.

      Parameters

      • event: Pick<globalThis.WheelEvent, "ctrlKey" | "metaKey" | "shiftKey">

      Returns WheelAction