Oversensitive horizontal scrolling in MATLAB on Mac
13 ビュー (過去 30 日間)
Using the trackpad on the MacBook if I scroll up or down and release in the code editor, the window shifts to the right, cutting off the first few characters of every line. I can use the arrows to move to the beginning of the line again, but it is very frustrating when looking over code to have to keep adjusting the text view in the window. I don't have this issue in other programs that allow horizontal scrolling (as well as vertical).
My operating system is MacOS Sierra version 10.12.6, my computer is a MacBook Air (13-inch, Mid 2013), and I use MATLAB R2018a. Help would be appreciated!
回答 (2 件)
bdcxns 2019 年 6 月 26 日
For any one encountered this issue, I have found one cause and the solution.
The situation for me is: this issue does not occur to me before Matlab 2017b, so previously I have to switch back to 2017a to avoid it. But when I am installing the newer versions, I found that the window jumps back one line or two after I lift my finger from the trackpad after scrolling, even when I am selecting which product to choose ! So I think it is not related to Matlab itself (it has not been installed), but it is related to the JRE shipped with Matlab.
After installing the newest Java version, and use 'export MATLAB_JAVA='the system jre path' ' in the terminal to let Matlab use the system JRE instead of the one shipped with it, and start the matlab.app from the terminal (you can make it permanent so you don't need to run everything from terminal), this issue is GONE !
However, it is stated by Matlab that only the shipped JRE is fully supported and some libraries might not work properly using other JRE, but I think this 'window jumping back issue' is much more frustrating than 'library not supported'.
The cause of this problem in your case might be different from mine, but you can give it a try first. Hope Matlab can fix this bug in future.
I am running Mojave by the way.