Forum > Editor

Wheel scrolling editor inconsistency



When using Page Up and Page Down, the position of the caret in the editor window remains constant, i.e, if the caret was in the center of the window, after paging up or down it will remain in the center of the window (unless it has run out of lines.)

When using the mouse scroll wheel the contents of the window move up or down as necessary but, the caret gets "lost" in its previous position instead of being fixed as it is when using Page Up and Down.

Is there an editor option to make the behavior (as far as the updating of the caret) when using the mouse scroll wheel be the same as when using Page Up/Down ? (basically treat the mouse scroll wheel as a 3 line "page" up or down.)

Thank you for your help.

Not that I can think of.

You can assign any editor command (advanced mouse opiton), but none of them scrolls 3 lines, and keeps the caret on its screen pos.

You can set the wheel to "move the caret" like a click would do. But that will move the caret to wherever the mouse is, and it will first move the caret then do the action (it's designed for a click).

Well actually, you can assign it to a macro, if you can write a macro doing what you want.... And if that ends up fast enough.
Advanced mouse options, double click the wheel action, first drop down "ide command", then 2nd dropdown towards the end of the list, chose the macro.

Thank you Martin.

It would be nice to have the option of having the caret stay where it is when using the mouse scroll wheel as it happens when using Page Up/Down.

Do you think this is a feature that would have a chance to be implemented if it were requested ?

Probably not as a priority... But I wouldn't reject it.


--- Quote from: Martin_fr on May 05, 2024, 03:39:13 pm ---Probably not as a priority... But I wouldn't reject it.

--- End quote ---
Great... thank you.  I created a feature request for it: 40949


[0] Message Index

Go to full version