flake8
passed.
JSHint
passed.
Review Request #13929 — Created June 4, 2024 and submitted
The fix to prevent accidentally scrolling away from the comment dialog
broke scrolling within the text editor. This change adds some smarts so
we figure out if we're trying to scroll in the text editor and the text
editor is capable of scrolling, we'll allow it, and if not, we'll
continue to swallow the event.