Skip to content

Commit

Permalink
fix: grabFocus from java preventScroll now
Browse files Browse the repository at this point in the history
Refs: #136
  • Loading branch information
tpoisseau committed Jul 23, 2024
1 parent a470dce commit 2fb5012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/canvas_editor/editor_area.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class EditorArea {
}
// JSUIHelper methods
grabFocus() {
this.canvasElement.focus();
this.canvasElement.focus({preventScroll: true});
}
setCursor(cursor) {
this.canvasElement.style.cursor = this.cursorManager.getCursor(cursor);
Expand Down

0 comments on commit 2fb5012

Please sign in to comment.