Jump to content
Willicious

[BUG] Mouse wheel no longer scrolls when highlighting

Recommended Posts

Steps to replicate:

 

1) Open a project in RAD Studio and open any unit that has enough lines to require vertical scrolling

2) Highlight a line of text by clicking LMB and dragging the mouse along that line

3) Use the scroll wheel to scroll vertically downwards

 

Expectation: the view will scroll down and subsequent lines will be highlighted.

 

Actual behaviour: the view remains static.

 

When releasing the LMB, the scroll wheel behaves as normal (i.e. the view is scrolled vertically).

 

Again, I might be imagining that RAD Studio has ever done this, but I've gone to do it a few times recently and it's surprised me that it hasn't worked. It may be because I've been working in Eclipse IDE which allows the expected behaviour.

 

If RAD is indeed supposed to do this, is there a setting I may have accidentally changed?

Share this post


Link to post

You're right. I have the same behavior; I never noticed it before since I don't usually select code like that. That said, you should report it on the Quality Portal instead of here.

  • Like 1

Share this post


Link to post
4 hours ago, havrlisan said:

You're right. I have the same behavior; I never noticed it before since I don't usually select code like that. That said, you should report it on the Quality Portal instead of here.

How do you select code? If there's a better way, I'm always up for learning.

 

I'll go ahead and report it as suggested.

Share this post


Link to post
7 minutes ago, Willicious said:

How do you select code?

I use the keyboard for code and the mouse for UI design - like they were meant to 🙂 

Why would you use the mouse for code?

  • Like 1

Share this post


Link to post
6 hours ago, Anders Melander said:

I use the keyboard for code and the mouse for UI design - like they were meant to 🙂 

Why would you use the mouse for code?

Precision, I suppose. It's easier to select a single word with the mouse, Ctrl+Click jumps to method/declaration, double-click selects a full word, etc. Why would you not use the mouse for these sorts of things?

 

Also, how would you go about selecting exactly 24.5 lines using the keyboard (for example)?

Edited by Willicious

Share this post


Link to post

It's not like I never use the mouse when coding (Ctrl+Click) but I find it much more efficient to use the keyboard as much as possible instead of switching back and forth.

Selection is probably one of the things I would very rarely use the mouse for. I guess I would do word selection using Ctrl+arrow to move, Ctrl+Shift+arrow to select. etc.

 

6 hours ago, Willicious said:

Also, how would you go about selecting exactly 24.5 lines using the keyboard (for example)?

Place the caret using normal arrow navigation. Shift+up/down for selection, etc.

It's not really something I think about but the fact that I didn't know that mouse-scroll.selection didn't work tells me that it isn't something that I have tried or something that I need.

 

Anyway, we each have our own usage patterns. There's no right or wrong.

  • Like 1

Share this post


Link to post
22 hours ago, Willicious said:

I might be imagining that RAD Studio has ever done this

I am pretty sure that this has never worked before - at least it does not in Delphi 7, Delphi XE8 or Delphi 12. So instead of filing a bug report this should probably better be a feature request.

 

Besides that, I actually have problems using the mouse wheel while pressing the left mouse button, but that can also be caused by my age.

  • Like 1

Share this post


Link to post
1 minute ago, Uwe Raabe said:

I am pretty sure that this has never worked before - at least it does not in Delphi 7, Delphi XE8 or Delphi 12. So instead of filing a bug report this should probably better be a feature request.

Does not work in 10.2.

I just checked three other text editor programs and MS word was the only one that supported it.

  • Like 1

Share this post


Link to post
On 3/11/2025 at 1:36 PM, Mark- said:

Does not work in 10.2.

I just checked three other text editor programs and MS word was the only one that supported it.

Examples of programs that have the desired behaviour:

Eclipse IDE

Notepad++

MS Visual Studio 2022

MS Word

MS Notepad

MS Command Prompt (not a text editor, sure, but a program that you might want to copy-paste large amounts of text to/from)

Google Chrome (and, by extension, any web-based text editor)

Mozilla Firefox (ditto)

 

And some examples of programs that don't support it:

RAD Studio 12

Adobe Acrobat PDF Reader (see MS Command Prompt comment)

The other two text editors that you referred to

 

On 3/11/2025 at 1:29 PM, Uwe Raabe said:

I am pretty sure that this has never worked before - at least it does not in Delphi 7, Delphi XE8 or Delphi 12. So instead of filing a bug report this should probably better be a feature request.

 

Is the Quality Portal the best place to post feature requests for RAD, or can it be done somewhere on these Forums? Happy for admin to repurpose this thread as a feature request, by all means.

Edited by Willicious

Share this post


Link to post
22 minutes ago, Willicious said:

Is the Quality Portal the best place to post feature requests for RAD

QP is the only place. These fora are just read by regular mortals like you and me.

 

But... ask yourself if you really want them to use their resources on this issue and if it's likely to be implemented.

Share this post


Link to post
1 hour ago, Willicious said:

Examples of programs that have the desired behavior:
...

Notepad++

MS Notepad

...

Not the versions on my computer.

 

Share this post


Link to post

Is it me or are there others that have problems by highlighting a line of text by clicking LMB and dragging

the mouse along that line and at the same time use the scroll wheel to scroll vertically downwards.

Somehow my fingers can't handle this process very well. Should I buy another mouse?

Share this post


Link to post
21 minutes ago, Die Holländer said:

Somehow my fingers can't handle this process very well. Should I buy another mouse?

That's exactly my experience and the reason why such a feature would not bring any significant advantage for me.

Share this post


Link to post
1 hour ago, Die Holländer said:

Is it me or are there others that have problems by highlighting a line of text by clicking LMB and dragging

the mouse along that line and at the same time use the scroll wheel to scroll vertically downwards.

I use the same finger for LMB and scrolling so it's pretty awkward to do both at the same time. Using the middle finger to scroll totally loses the required motor precision.

My mouse do have two scroll-wheels, a regular one and one at the thumb position, but I've only ever used the thumb scroll in games.

image.thumb.png.8396f7317eb56464e45942bb497de33b.png

 

Share this post


Link to post
5 hours ago, Willicious said:

Examples of programs that have the desired behaviour:
 

MS Notepad

Not on Windows 10 and 11. It scrolls, but doesn't expand the selection.

But PSPad (written in Delphi IMHO) does.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×