Skip to content

Commit

Permalink
fix: remove calls to CenterCursorOnRectCommand (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Feb 6, 2023
1 parent e4ab7cc commit 1794416
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ public CommandResponse Handle(MoveContainerWithinTreeCommand command)
shouldAdjustSize
);

// Center cursor in focused window's new location
_bus.InvokeAsync(new CenterCursorOnRectCommand(containerToMove.ToRect()));

return CommandResponse.Ok;
}

Expand Down Expand Up @@ -90,9 +87,6 @@ public CommandResponse Handle(MoveContainerWithinTreeCommand command)
targetParentAncestor
);

// Center cursor in focused window's new location
_bus.InvokeAsync(new CenterCursorOnRectCommand(containerToMove.ToRect()));

return CommandResponse.Ok;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ public CommandResponse Handle(SetNativeFocusCommand command)
_bus.Emit(new FocusChangedEvent(containerToFocus));
}

_bus.InvokeAsync(new CenterCursorOnRectCommand(containerToFocus.ToRect()));

return CommandResponse.Ok;
}
}
Expand Down

0 comments on commit 1794416

Please sign in to comment.