-
Notifications
You must be signed in to change notification settings - Fork 30k
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
fixes https://github.com/Microsoft/monaco-editor/issues/1353 #72832
Conversation
bump on this @rebornix and @alexandrudima -- anything i can do to aid in review here? Many thanks! |
Thought I'd check in on this again. This PR is very small and hopefully not controversial (I tried to follow other examples from the code base as closely as I could). It's my hope that it will be a very quick (3-ish minute) review. Please let me know if there is anything I can do to make it easy for you all! Thanks @jrieken, @rebornix and @alexandrudima! :-) |
@bcolloran thanks for your help and sorry for missing your ping. The code works as expected. The only problem is I think the right fix should be adopting IMO we should
|
@bcolloran it would be awesome that you can help with this issue, having more contribution is always incredible to me. I can do a mitigation for FF and for adopting Firstly, we need to know what's the expected result of Secondly, we change |
These event aren't standard according to :
it's recommended to use : https://developer.mozilla.org/en-US/docs/Web/API/Element/wheel_event |
It's already fixed in master. We can look into how to adopt |
This PR fixes microsoft/monaco-editor#1353 based on the suggestion from @cgillis-aras here: microsoft/monaco-editor#1353 (comment)
Unfortunately, the follow-up comment from @yishn did not work out -- just changing from
'mousewheel'
to'wheel'
did not work on Firefox.This PR follows the pattern used in several other vscode files of using
browser.isFirefox
rather than registering multiple listeners (from the original suggestion).Tested and working in vscode and Monaco. Feedback welcome and appreciated! :-)