Skip to content

Commit

Permalink
refactor: simplify moving selection from edge
Browse files Browse the repository at this point in the history
  • Loading branch information
dsouza95 committed Jul 19, 2024
1 parent b454668 commit fce57dd
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/syncfusion/selection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,18 +159,12 @@ export class IaraSyncfusionSelectionManager {

public moveSelectionToAfterBookmarkEdge(bookmarkId: string): void {
this._editor.selection.selectBookmark(bookmarkId, false);
this._editor.selection.select(
this._editor.selection.endOffset,
this._editor.selection.endOffset
);
this._editor.selection.moveNextPosition();
}

public moveSelectionToBeforeBookmarkEdge(bookmarkId: string): void {
this._editor.selection.selectBookmark(bookmarkId, false);
this._editor.selection.select(
this._editor.selection.startOffset,
this._editor.selection.startOffset
);
this._editor.selection.movePreviousPosition();
}

public resetStyles(): void {
Expand Down

0 comments on commit fce57dd

Please sign in to comment.