Notepad2e icon indicating copy to clipboard operation
Notepad2e copied to clipboard

ScrollYCaretPolicy affecting some input commands but not others

Open ProgerXP opened this issue 5 years ago • 2 comments
trafficstars

Currently if you just type something (e.g. press q, w, etc.) ScrollYCaretPolicy is not used. If you delete something with Backspace or Del it's also not used. However, it's used with Ctrl+Backspace or Ctrl+Del.

This should be made consistent by either disabling ScrollYCaretPolicy for Ctrl+Backspace/Del or enabling it for other (normal) input commands.

Note: this does not happen with the previous released version (https://github.com/ProgerXP/Notepad2e/releases/tag/R92). I suspect it might be caused by #279 but I don't see how it's related.

ProgerXP avatar Mar 28 '20 10:03 ProgerXP

Fixed. ScrollYCaretPolicy is now applied in all cases: chars, (Ctrl+)Del/Backspace.

cshnik avatar Mar 30 '20 17:03 cshnik

Years after using ScrollYCaretPolicy of 1 (33%) I understood we should not adjust the scroll position in response to modification and near navigation (using arrows) because it's mildly annoying (always) and inconvenient (if just 10-20 lines are visible in a buffer or whole window - evenScrollYCaretPolicy of 0, which is 4 lines, doesn't help).

Let's revert changes done in this issue as well as check how simple it is to:

  • disable scrolling due to Ctrl+Backspace or Ctrl+Del (read the first post), and Alt+Backspace/Del (#323)
  • not scroll on Arrow Left/Right and Alt+ (but do scroll on Arrow Up/Down, in consistency with Page Up/Down), and #436 - in other words, scroll on vertical navigation only, when active line number changes

ProgerXP avatar Dec 16 '23 18:12 ProgerXP