Skip to content

Commit

Permalink
Issue miho#26: changed scrollbar configuration in monacofx.
Browse files Browse the repository at this point in the history
  • Loading branch information
kia committed Feb 13, 2023
1 parent 100cd8a commit 38bb290
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/main/java/eu/mihosoft/monacofx/PasteAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ public PasteAction() {
setRunScript("let position = editor.getPosition();\n"
+ "let newPosition = clipboardBridge.paste(editor.getSelection(), position);\n"
+ "editor.setPosition(newPosition);\n"
+ "editor.focus();");
+ "editor.focus();"
+ "const position: any = this.editor?.getPosition();\n"
+ "this.editor?.setPosition(position);");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@
value: getCode(),
automaticLayout: true,
roundedSelection: false,
mouseWheelScrollSensitivity: 1,
mouseWheelScrollSensitivity: 0.1,
mouseWheelZoom: true,
smoothScrolling: true,
scrollBeyondLastLine: false,
smoothScrolling: false,
scrollBeyondLastLine: true,
fontSize: "12px",
wordWrapColumn: 80,
wordWrapMinified: true,
Expand Down

0 comments on commit 38bb290

Please sign in to comment.