forge
Explore
Log in

Don't you dare go Hollow

Fix vertical gesture constant

Browse files at this commit

1548db56ce7cdfcc3bbda4a4cf3603b546f69433Ivan MolodetskikhParent: 5f416ab
400 is for width not height.
src/layout/monitor.rsmodified+2 -2
@@ -721,8 +721,8 @@ impl<W: LayoutElement> Monitor<W> {
721 721
722 gesture.tracker.push(delta_y, timestamp);722 gesture.tracker.push(delta_y, timestamp);
723 723
724- // Normalize like GNOME Shell's workspace switching.724+ // Normalize like AdwSwipeTracker.
725- let pos = gesture.tracker.pos() / 400.;725+ let pos = gesture.tracker.pos() / 300.;
726 726
727 let min = gesture.center_idx.saturating_sub(1) as f64;727 let min = gesture.center_idx.saturating_sub(1) as f64;
728 let max = (gesture.center_idx + 1).min(self.workspaces.len() - 1) as f64;728 let max = (gesture.center_idx + 1).min(self.workspaces.len() - 1) as f64;