M MY Multiplayer: Wiki
Side
Kind

sendDuiMouseWheel

Client

Scrolls a dui's page with the mouse wheel.

bool sendDuiMouseWheel(dui dui, int x, int y, int delta)

Parameters

NameTypeDescription
duiduiThe dui.
xintPosition on the page, in pixels from its top-left corner.
yintPosition on the page, in pixels from its top-left corner.
deltaintHow far to scroll vertically. Positive goes up, negative goes down.

Returns

true if it was sent. false with an argument that is not a dui (logs a warning).

Example

local dui = createDui("https://example.com", 800, 600)
bindKey("mouse_wheel_down", "down", function()
    sendDuiMouseWheel(dui, 400, 300, -120)
end)

See also