diff options
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/scrolling.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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<W: LayoutElement> ScrollingSpace<W> { 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) { |
