Monaco-editor: I hope that after scrolling to the bottom in the editor area, continuing to scroll can make the body scroll down

Created on 4 Dec 2020  路  4Comments  路  Source: microsoft/monaco-editor

test link: https://microsoft.github.io/monaco-editor/index.html

The feature I want is as shown below:
image

Thank you for viewing and look forward to your reply馃グ

Most helpful comment

Take a look at this comment here

So I guess you have to do it this way,

this.diffEditor = monaco.editor.createDiffEditor(
    document.getElementById('diff-editor'), { 
    scrollbar: { 
        alwaysConsumeMouseWheel: false
    } 
});

All 4 comments

I think on changing alwaysConsumeMouseWheel value to false, You might get what you want.
https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.ieditorscrollbaroptions.html#alwaysconsumemousewheel

I think on changing alwaysConsumeMouseWheel value to false, You might get what you want.
https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.ieditorscrollbaroptions.html#alwaysconsumemousewheel

I tried it without success. My method of use is shown below:

image

Take a look at this comment here

So I guess you have to do it this way,

this.diffEditor = monaco.editor.createDiffEditor(
    document.getElementById('diff-editor'), { 
    scrollbar: { 
        alwaysConsumeMouseWheel: false
    } 
});

Take a look at this comment here

So I guess you have to do it this way,

this.diffEditor = monaco.editor.createDiffEditor(
  document.getElementById('diff-editor'), { 
  scrollbar: { 
      alwaysConsumeMouseWheel: false
  } 
});

Wu~~~ It's work! Thank you very much! 馃尮

Was this page helpful?
0 / 5 - 0 ratings