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> {
2465 pub fn tiles_with_ipc_layouts(&self) -> impl Iterator<Item = (&Tile<W>, WindowLayout)> {2465 pub fn tiles_with_ipc_layouts(&self) -> impl Iterator<Item = (&Tile<W>, WindowLayout)> {
2466 let scale = self.scale;2466 let scale = self.scale;
2467 let view = Rectangle::from_size(self.view_size);2467 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();
2469 2471
2470 self.columns2472 self.columns
2471 .iter()2473 .iter()