Ignore off-screen cursors

This commit is contained in:
Conrad Irwin
2023-07-20 11:11:47 -06:00
parent 464cc2e71a
commit 0e984e1e69
+2 -2
View File
@@ -2077,8 +2077,8 @@ impl Workspace {
};
let cursor = self.active_pane.read(cx).pixel_position_of_cursor(cx);
let center = match cursor {
Some(cursor) => cursor,
None => bounding_box.center(),
Some(cursor) if bounding_box.contains_point(cursor) => cursor,
_ => bounding_box.center(),
};
let distance_to_next = theme::current(cx).workspace.pane_divider.width + 1.;