Skip to content
Snippets Groups Projects
Commit 8dd24d77 authored by rhenck's avatar rhenck
Browse files

[editor] Fix selected page after moving

parent 68924a81
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,8 @@ export class PageService {
this.unitService.unit.pages,
direction === 'left' ? 'up' : 'down'
);
this.selectionService.selectPage(direction === 'left' ?
this.selectionService.selectedPageIndex - 1 : this.selectionService.selectedPageIndex + 1);
this.unitService.updateSectionCounter();
this.unitService.updateUnitDefinition();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment