Question about marking text and mouse movement

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
Raziel

Question about marking text and mouse movement

Post by Raziel »

This is something i wanted to ask for a long time

Say you got a huge text displayed in Multivew or Notepad or wherever and want to mark it with the mouse.

Once the programs start scrolling down to show the text out of sight and you DON'T move the mouse it will scroll down slowly

But if you go crazy and move around your mouse cursor as if there is no tomorrow the marking will actually become faster

Why is that?

I know it's not a bug, because i have seen this behaviour to a lesser extent on Win machines aswell

Just curious as i'm wondering about this behaviour for years
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1483
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: Question about marking text and mouse movement

Post by tonyw »

The reason is that if you bring the cursor down to the edge of the window, the program (certainly Notepad and Multiview and some others) use the Intuition clock to add rows of text to the clip. That clock is 10/second, so without any jiggling, you'll get ten rows/sec added. However, you can jiggle the cursor and get to a new un-highlighted row more quickly than by waiting for the next clock tick.

IIRC Windows does it by speeding up the rate of row-adding once you get to the bottom and beyond.
cheers
tony
Raziel

Re: Question about marking text and mouse movement

Post by Raziel »

tonyw wrote:The reason is that if you bring the cursor down to the edge of the window, the program (certainly Notepad and Multiview and some others) use the Intuition clock to add rows of text to the clip. That clock is 10/second, so without any jiggling, you'll get ten rows/sec added. However, you can jiggle the cursor and get to a new un-highlighted row more quickly than by waiting for the next clock tick.

IIRC Windows does it by speeding up the rate of row-adding once you get to the bottom and beyond.
I can finally sleep well again, thanks for the explanation :-)
User avatar
gazelle
Posts: 102
Joined: Sun Mar 04, 2012 12:49 pm
Location: Frohnleiten, Austria

Re: Question about marking text and mouse movement

Post by gazelle »

The real reason is that a program can only react to events it gets. If you stop moving your mouse the program will not get any new events and would just keep waiting for the next one. To avoid this situation most programs also listen to INTUITICKS to keep going if necessary. The more events the faster the processing. If you keep moving your mouse like crazy there will be a lot of mousemove events which speeds up the selecting.
Raziel

Re: Question about marking text and mouse movement

Post by Raziel »

Sooo, a "fix" would be to add a "Mark All" command to Multiview (or rather the corresponding text plugin?) ;-)

^^^^^^^^^
Feature Request ;-)
chris
Posts: 564
Joined: Sat Jun 18, 2011 12:05 pm
Contact:

Re: Question about marking text and mouse movement

Post by chris »

Raziel wrote:Sooo, a "fix" would be to add a "Mark All" command to Multiview (or rather the corresponding text plugin?) ;-)

^^^^^^^^^
Feature Request ;-)
Or you could do a select/adjust style for text highlighting, like NetSurf uses.

ie. highlight with left mouse button as usual, and extend the highlighted area out (after scrolling) with the middle mouse button.

It's a RISC OS feature, but it works well and saves holding the mouse button down and waiting for an excrutiatingly slow scroll.
Post Reply