Recent

Author Topic: Wheel scrolling editor inconsistency  (Read 997 times)

440bx

  • Hero Member
  • *****
  • Posts: 4336
Wheel scrolling editor inconsistency
« on: May 05, 2024, 05:29:19 am »
Hello,

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.
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10083
  • Debugger - SynEdit - and more
    • wiki
Re: Wheel scrolling editor inconsistency
« Reply #1 on: May 05, 2024, 09:08:25 am »
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.

440bx

  • Hero Member
  • *****
  • Posts: 4336
Re: Wheel scrolling editor inconsistency
« Reply #2 on: May 05, 2024, 03:03:39 pm »
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 ?


(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10083
  • Debugger - SynEdit - and more
    • wiki
Re: Wheel scrolling editor inconsistency
« Reply #3 on: May 05, 2024, 03:39:13 pm »
Probably not as a priority... But I wouldn't reject it.


440bx

  • Hero Member
  • *****
  • Posts: 4336
Re: Wheel scrolling editor inconsistency
« Reply #4 on: May 05, 2024, 04:46:36 pm »
Probably not as a priority... But I wouldn't reject it.
Great... thank you.  I created a feature request for it: 40949
Link: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40949
(FPC v3.0.4 and Lazarus 1.8.2) or (FPC v3.2.2 and Lazarus v3.2) on Windows 7 SP1 64bit.

 

TinyPortal © 2005-2018