about summary refs log tree commit diff stats
path: root/button.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-06-04 14:55:52 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-06-04 14:55:52 -0700
commitfa267e25e600a875696b6ab972b72515fa71e20a (patch)
treee08e70387ef93f6b7b10a8e3f911a96ff3e1c690 /button.lua
parent1326914d7bda65a5791c2121dae6d3987a907994 (diff)
downloadview.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 'button.lua')
0 files changed, 0 insertions, 0 deletions