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
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 :/
Context
Description
Currently,
ctrl + wheel
scrolls the the editor content ifmouseWheelZoom
isfalse
, and it zooms only the editor content whenmouseWheelZoom
istrue
.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
The text was updated successfully, but these errors were encountered: