Skip to content

Commit

Permalink
chore: updated handler
Browse files Browse the repository at this point in the history
  • Loading branch information
squidrye committed Oct 27, 2023
1 parent 9d74529 commit fc9ccb8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,14 @@ class PanesBloc extends Bloc<PanesEvent, PanesState> {
? Axis.vertical
: Axis.horizontal;

final root = panesService.splitHandler(
node: state.root,
targetPaneId: e.to.paneId,
final root = panesService.movePaneHandler(
root: state.root,
toNode: e.to,
direction: direction,
axis: axis,
fromNode: e.from,
);

final firstLeafNode = panesService.findFirstLeaf(node: root);

emit(
Expand All @@ -131,7 +132,6 @@ class PanesBloc extends Bloc<PanesEvent, PanesState> {
count: state.count + 1,
),
);
add(ClosePane(paneId: e.from.paneId, closingToMove: true));
},
);
},
Expand Down

0 comments on commit fc9ccb8

Please sign in to comment.