Skip to content

Commit

Permalink
fix: prevent resetting selection on scroll click while recording
Browse files Browse the repository at this point in the history
  • Loading branch information
dsouza95 committed Jan 16, 2024
1 parent bec759b commit 48e794d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/syncfusion/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,12 @@ export class IaraSyncfusionAdapter

this._editorContainer.element.addEventListener("mousedown", event => {
if (event.button === 1) {
this._resetSelection = true;
this._cursorSelection = new IaraSyncfusionSelectionManager(
this._editorContainer.documentEditor
);
event.preventDefault();
if (!this._selectionManager) {
this._resetSelection = true;
this._cursorSelection = new IaraSyncfusionSelectionManager(
this._editorContainer.documentEditor
);
}
this._recognition.toggleRecording();
}
});
Expand Down

0 comments on commit 48e794d

Please sign in to comment.