diff --git a/src/layout/scrolling.rs b/src/layout/scrolling.rs index 7e9df56d..5f746915 100644 --- a/src/layout/scrolling.rs +++ b/src/layout/scrolling.rs @@ -293,6 +293,11 @@ impl ScrollingSpace { self.working_area = working_area; self.scale = scale; self.options = options; + + // Apply always-center and such right away. + if !self.columns.is_empty() && !self.view_offset.is_gesture() { + self.animate_view_offset_to_column(None, self.active_column_idx, None); + } } pub fn update_shaders(&mut self) {