pub fn clamp_offset( offset: [f32; 2], content: [f32; 2], viewport: [f32; 2], ) -> [f32; 2]
Clamp an offset so it stays within valid scroll bounds.