Ignore off-screen cursors
This commit is contained in:
parent
464cc2e71a
commit
0e984e1e69
1 changed files with 2 additions and 2 deletions
|
@ -2077,8 +2077,8 @@ impl Workspace {
|
||||||
};
|
};
|
||||||
let cursor = self.active_pane.read(cx).pixel_position_of_cursor(cx);
|
let cursor = self.active_pane.read(cx).pixel_position_of_cursor(cx);
|
||||||
let center = match cursor {
|
let center = match cursor {
|
||||||
Some(cursor) => cursor,
|
Some(cursor) if bounding_box.contains_point(cursor) => cursor,
|
||||||
None => bounding_box.center(),
|
_ => bounding_box.center(),
|
||||||
};
|
};
|
||||||
|
|
||||||
let distance_to_next = theme::current(cx).workspace.pane_divider.width + 1.;
|
let distance_to_next = theme::current(cx).workspace.pane_divider.width + 1.;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue