You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constvalue=/* set from `myEditor.getModel()`: */`public class StickyScroll { public static void main(String[] args) { }}`;// Hover on each property to see its docs!constmyEditor=monaco.editor.create(document.getElementById("container"),{
value,language: "java",automaticLayout: true,});
Reproduction Steps
Scroll down so that a line sticks to the top of the editor.
Right click the sticky line. (Note: Your browser's context menu may cover the option that appears. To work around this, you can click on your browser's tab bar.)
An option "Sticky Scroll" appears - click it.
Actual (Problematic) Behavior
The browser's context menu appears when right clicking the sticky line
The "Sticky Scroll" option appears as text without a border
Clicking the "Sticky Scroll" option has no apparent effect on the sticky scrolling feature
Expected Behavior
When right clicking on a sticky line, the context menu of the browser should not appear.
Like right clicking in the text area of the editor, there should be a border around the "Sticky Scroll" option.
When the "Sticky Scroll" option is clicked, sticky scrolling should be toggled.
Additional Context
Here's a video of what happens:
2024-04-30.19-31-36.mp4
The text was updated successfully, but these errors were encountered:
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Link
https://microsoft.github.io/monaco-editor/playground.html?source=v0.48.0#XQAAAAJ-AQAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscwzjfRu_1uhs0-3YGTBOsVJ4S4FwfCDQb5-2uUHXTVAefbVSd9IzaZ_vv9VR9KugsKiqzCsumz7pId1IzVhRQC5Ggfg-QSMpuikjoGgYVoGl2cRqy7QSMxwynmBaHxXQ2i3Mw_jclNOAT7cFbLITKlOYO3iZkSEnnW1s7i6mDGBOpGNIyPBeJ7tJPZY5W6XslSpHT62xSlae7zrK99a_MtJhz93m6agPgiOth_stZNT4V7n4r6UOy0Bon8DbqwrCwCMvuW19qGQDk_4X3YWsdaF0Xqt75faTuF3lCoY1MDtciV4wjfdlhqv7mcQQvKfma1Mj8a8d_P__ZSoq8
Monaco Editor Playground Code
Reproduction Steps
Actual (Problematic) Behavior
Expected Behavior
Additional Context
Here's a video of what happens:
2024-04-30.19-31-36.mp4
The text was updated successfully, but these errors were encountered: