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
I am trying to implement the editor zoom updating the fontSize option as suggested in #196.
Besides the CTRL + NUMPAD_ADD / NUMPAD_SUBTRACT shortcut keys, I would like to set the zoom level using CTRL + Mouse Wheel. From one hand, I did not find in Monaco API a way to listen mouse wheel events. On the other hand, listening those events in a monaco wrapper does not work also because Monaco is stop this event propagation.
Is there any workaround?
The text was updated successfully, but these errors were encountered:
@lmvco Have you tried using the option mouseWheelZoom: true. The editor listens to ctrl + mouse wheel by itself, but that is just turned off because on macOS the trackpad is very sensitive.
@lmvco No, unfortunately there is no API for that.
Then I suggest that you add a capture mousewheel listener on the editor's container and then compute a zoom level on your own which you can then use as a multiplier for fontSize.
alexdima
added
*question
Issue represents a question, should be posted to StackOverflow (VS Code)
and removed
info-needed
Issue requires more information from poster
labels
Jan 22, 2020
I am trying to implement the editor zoom updating the fontSize option as suggested in #196.
Besides the CTRL + NUMPAD_ADD / NUMPAD_SUBTRACT shortcut keys, I would like to set the zoom level using CTRL + Mouse Wheel. From one hand, I did not find in Monaco API a way to listen mouse wheel events. On the other hand, listening those events in a monaco wrapper does not work also because Monaco is stop this event propagation.
Is there any workaround?
The text was updated successfully, but these errors were encountered: