forge
Explore
Log in

Don't you dare go Hollow

Use stationary view pos for scrolling tile pos IPC

Browse files at this commit

e7a92816d832811f454f507b0afd31cd17938e48Ivan MolodetskikhParent: e32e69f
Avoid spam during left-right scrolling gestures.
src/layout/scrolling.rsmodified+3 -1
@@ -2465,7 +2465,9 @@ impl<W: LayoutElement> ScrollingSpace<W> {
24652465 pub fn tiles_with_ipc_layouts(&self) -> impl Iterator<Item = (&Tile<W>, WindowLayout)> {
24662466 let scale = self.scale;
24672467 let view = Rectangle::from_size(self.view_size);
2468- let view_pos = self.target_view_pos();
2468+ // Use the stationary view offset, consistent with how moving floating windows doesn't spam
2469+ // the IPC in progress.
2470+ let view_pos = self.column_x(self.active_column_idx) + self.view_offset.stationary();
24692471
24702472 self.columns
24712473 .iter()