Fix scrolling inside the Visual editor on MacOS, add the same functionality to the Text editor, see #27013

git-svn-id: https://develop.svn.wordpress.org/trunk@27110 602fd350-edb4-49c9-b593-d223f7449a82