How to keep editor scrollbar from selecting text?

I installed R2023a on a new mac, and now this very annoying new behavior: if I grab the scrollbar to drag up or down the script, it selects all the text between start and end scrolling points. This can't be intended, how to stop it?

回答 (1 件)

Vishnu
Vishnu 2023 年 7 月 12 日

0 投票

You might have enabled "Scroll Selection", to disable it, follow these steps:
  1. Go to the "Home" tab in the MATLAB toolbar.
  2. Click on "Preferences" to open the Preferences dialog.
  3. In the Preferences dialog, select "Editor/Debugger" from the left-hand side panel.
  4. Under the "Editor" section, click on "Scrolling" to expand the options.
  5. Uncheck the box next to "Scroll Selection" to disable this feature.
  6. Click "Apply" and then "OK" to save the changes and close the Preferences dialog.

5 件のコメント

andrew haun
andrew haun 2023 年 7 月 12 日
移動済み: Voss 2023 年 7 月 12 日
Hi, thanks but the panel doesn't quite resemble what you de3scribe, and I find only one option mentioning scroll (an option in Display to enable "Scroll/zoom", which is not enabled).
Are you looking at Mac/PC version? Could it be somewhere else I am missing?
Joshua Diamond
Joshua Diamond 2023 年 12 月 5 日
I have the same problem, and likewise @Vishnu's comment didn't work for me.
andrew haun
andrew haun 2023 年 12 月 6 日
Oh Hey, I think I solved it a couple of months ago, though I forgot about my comment here.
In my case, I changed a setting in the OS "Appearance" tab, i.e. not a Matlab but a Mac setting. "Show scroll bars" was set to "When scrolling" - I changed it to "Always" and this fixed this scroll-select problem. I just double-checked it.
TrevorR
TrevorR 2025 年 8 月 21 日
@andrew haun Thanks that worked
Walter Roberson
Walter Roberson 2025 年 8 月 21 日
編集済み: Walter Roberson 2025 年 8 月 21 日
This is what the preferences section looks like on MATLAB R2023a for MacOS:
As you can see, the Editor section of Editor/Debugger has no "Scrolling" or "Scroll Selection"
The Windows R2023a preferences are the same, just with slightly different decorations.
I do not recall there ever having been a "Scroll Selection" preference.
I think you used an AI system to answer, without checking the validity of the answer yourself.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeEntering Commands についてさらに検索

製品

リリース

R2023a

質問済み:

2023 年 7 月 11 日

編集済み:

2025 年 8 月 21 日

Community Treasure Hunt

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

Start Hunting!

Translated by