diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-06-04 14:55:52 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-06-04 14:55:52 -0700 |
commit | fa267e25e600a875696b6ab972b72515fa71e20a (patch) | |
tree | e08e70387ef93f6b7b10a8e3f911a96ff3e1c690 /search.lua | |
parent | 1326914d7bda65a5791c2121dae6d3987a907994 (diff) | |
download | view.love-fa267e25e600a875696b6ab972b72515fa71e20a.tar.gz |
experiment: slightly adaptive scrolling
When long wrapping lines go past the current page, I find myself scrolling before I get to the bottom. So let's scroll less, usually from the start of the bottom-most line, even if it wraps multiple screen lines. The challenge with this is to ensure that a long line that fills the whole page by itself doesn't get you stuck. I take some care to make sure <pagedown> always makes forward progress.
Diffstat (limited to 'search.lua')
0 files changed, 0 insertions, 0 deletions