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

[Feature Request] A way to propagate ctrl + wheel events #4789

Open
2 tasks done
harunurhan opened this issue Dec 19, 2024 · 0 comments
Open
2 tasks done

[Feature Request] A way to propagate ctrl + wheel events #4789

harunurhan opened this issue Dec 19, 2024 · 0 comments
Labels
feature-request Request for new features or functionality

Comments

@harunurhan
Copy link
Member

Context

  • This issue is not a bug report. (please use a different template for reporting a bug)
  • This issue is not a duplicate of an existing issue. (please use the search to find existing issues)

Description

Currently, ctrl + wheel scrolls the the editor content if mouseWheelZoom is false, and it zooms only the editor content when mouseWheelZoom is true.

Due to accessibility and UX consistency requirements, we want ctrl + wheel to bubble and eventually handled by the browser which will zoom in/out entire browser window.

I didn't find any option in the public API that'll allow us to implement this. I guess we could try to catch the event in the capture phase and stop it, then try to dispatch a synthetic event from the container of the editor instead. I am not sure if it would work, but it is quite fragile :/

Related to: #1229

Monaco Editor Playground Link

No response

Monaco Editor Playground Code

@harunurhan harunurhan added the feature-request Request for new features or functionality label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

1 participant