File tree Expand file tree Collapse file tree 4 files changed +18
-14
lines changed
Expand file tree Collapse file tree 4 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ export default class EditorScrollCommandsPlugin extends Plugin {
4343
4444 scroll ( offset : number ) {
4545 let editor = this . app . workspace . activeEditor ?. editor ;
46- if ( ! editor ) { return ; }
46+ if ( ! editor ||
47+ // @ts -expect-error
48+ ! editor . activeCM . dom . hasClass ( 'cm-focused' )
49+ ) { return ; }
4750
4851 if ( ! this . intervalId ) {
4952 this . editorScrolling = this . app . workspace . activeEditor ;
Original file line number Diff line number Diff line change 11{
2- "id" : " editor-scroll-commands" ,
3- "name" : " Editor Scroll Commands" ,
4- "version" : " 1.1.0 " ,
5- "minAppVersion" : " 0.15.0" ,
6- "description" : " Add scroll commands for editor, so you can assign hotkeys." ,
7- "author" : " Andrey Sorokin <pho.nzp@gmail.com>" ,
8- "isDesktopOnly" : true
9- }
2+ "id" : " editor-scroll-commands" ,
3+ "name" : " Editor Scroll Commands" ,
4+ "version" : " 1.1.1 " ,
5+ "minAppVersion" : " 0.15.0" ,
6+ "description" : " Add scroll commands for editor, so you can assign hotkeys." ,
7+ "author" : " Andrey Sorokin <pho.nzp@gmail.com>" ,
8+ "isDesktopOnly" : true
9+ }
Original file line number Diff line number Diff line change 11{
22 "name" : " editor-scroll-commands" ,
3- "version" : " 1.1.0 " ,
3+ "version" : " 1.1.1 " ,
44 "description" : " Add scroll commands for editor, so you can assign hotkeys." ,
55 "main" : " main.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 11{
2- "1.0.0" : " 0.15.0" ,
3- "1.0.3" : " 0.15.0" ,
4- "1.1.0" : " 0.15.0"
5- }
2+ "1.0.0" : " 0.15.0" ,
3+ "1.0.3" : " 0.15.0" ,
4+ "1.1.0" : " 0.15.0" ,
5+ "1.1.1" : " 0.15.0"
6+ }
You can’t perform that action at this time.
0 commit comments