Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Sticky scroll toggle does not work #4488

Open
1 of 2 tasks
pzdr7 opened this issue Apr 30, 2024 · 0 comments
Open
1 of 2 tasks

[Bug] Sticky scroll toggle does not work #4488

pzdr7 opened this issue Apr 30, 2024 · 0 comments

Comments

@pzdr7
Copy link

pzdr7 commented Apr 30, 2024

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or 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

const value = /* set from `myEditor.getModel()`: */ `public class StickyScroll {
	public static void main(String[] args) {
		


		
	}
}`;

// Hover on each property to see its docs!
const myEditor = monaco.editor.create(document.getElementById("container"), {
	value,
	language: "java",
	automaticLayout: true,
});

Reproduction Steps

  1. Scroll down so that a line sticks to the top of the editor.
  2. 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.)
  3. An option "Sticky Scroll" appears - click it.

Actual (Problematic) Behavior

  1. The browser's context menu appears when right clicking the sticky line
  2. The "Sticky Scroll" option appears as text without a border
  3. Clicking the "Sticky Scroll" option has no apparent effect on the sticky scrolling feature

Expected Behavior

  1. When right clicking on a sticky line, the context menu of the browser should not appear.
  2. Like right clicking in the text area of the editor, there should be a border around the "Sticky Scroll" option.
  3. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant