onScroll(action: (delta: Vec2)=>void): KEventController
Register an event that runs when mouse wheel scrolled.// Zoom camera on scroll onScroll((delta) => { const zoom = delta.y / 500 camScale(camScale().add(zoom)) })
since
v3000.0
// Zoom camera on scroll onScroll((delta) => { const zoom = delta.y / 500 camScale(camScale().add(zoom)) })
since
v3000.0