SIGN IN SIGN UP

mcp: add wheel events to the tool surface

A client could move, click and drag the pointer but never scroll it, so a
Flickable or ScrollView couldn't be scrolled and a wheel-driven canvas zoom
wasn't reachable at all. Working around it meant finding the application's own
scroll or zoom controls in the element tree and clicking them repeatedly.

`ElementHandle::scroll` already dispatches `PointerScrolled` at an element's
center, so the two tools are thin: `scroll_element` takes a handle and
`dispatch_pointer_scroll` an arbitrary point, mirroring the existing
`hover_element` and `move_pointer` pair.

ChangeLog: The MCP server has new `scroll_element` and `dispatch_pointer_scroll` tools, to send mouse wheel events.
T
Till Adam committed
4e64a0b21dc7db2a4aa81f7349d358a86c3043e3
Parent: 23dcde3
Committed by Simon Hausmann <hausmann@gmail.com> on 9/9/2026, 12:01:48 PM