Oversensitive horizontal scrolling in MATLAB on Mac

조회 수: 4 (최근 30일)
Maxandre Jacqueline
Maxandre Jacqueline 2018년 7월 21일
답변: bdcxns 2019년 6월 26일
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!
  댓글 수: 4
Mauricio Salgado Moreno
Mauricio Salgado Moreno 2018년 11월 10일
I have the same problem!
I'm also using MATLAB R2018a on a MacBook Pro (macOS Sierra 10.12.6).
Moreover, if I open MATLAB R2016b everything works fine.
Thaddeus
Thaddeus 2019년 1월 16일
편집: Thaddeus 2019년 1월 16일
Same problem....it slowly drives you completely insane. Seems to happen primarily when editor is open on a second monitor (usb-c to DisplayPort cable; no dongles).
• Matlab 9.4.0.813654 (R2018a), MacBook Pro (2016), MacOS 10.13.6
Note: this is distinct from the old autoscroll problem that plagued Matlab installs a few versions ago, where the editor or command window would start scrolling up for an extended duration. The window scroll position just jumps 1 character to the right (and sometimes 1 char upward too) when you take your fingers off the trackpad after scrolling.
Whatever the underlying problem is, it seems related to the right click jumping error because when the scrolling thing is driving me nuts two-finger right clicking in the editor window (while maintaining contact with the trackpad) also reliably causes the scroll position to jump & the popup context menu to disappear.
Changing the way the user interacts with the computer (e.g. turn off two-finger click & scroll, use an external mouse, don't use a second monitor) are really absurd suggestions to what is clearly a software problem. ...This needs a proper patch from The Mathworks.

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
Walter Roberson 2018년 8월 22일
The main discussion for this problem is in https://www.mathworks.com/matlabcentral/answers/370696-text-jump-on-right-click, which includes discussion of work-arounds
  댓글 수: 1
Yolande Serra
Yolande Serra 2018년 10월 22일
This is actually a different problem. This discussion is related to scrolling through a code in the editor, not trying to right-click on text within the editor. (A problem I actually do not have.)

댓글을 달려면 로그인하십시오.


bdcxns
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.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by