Open raineorshine opened 11 months ago
Empty space below cursor cropped in f9bdeabcda and 12db3129b1.
Empty space above cursor cc3928a 7004dc9315 f2fcb26b34.
Insufficient total height when closing keyboard
https://github.com/cybersemics/em/assets/750276/1d57b75f-7a82-42ab-b822-47bfb5c642e8
Ran into fundamental issues with Approach 1. Need to revert.
See: https://github.com/cybersemics/em/issues/1778#issuecomment-2068076099
Probably need to max(scrollTop, documentHeight - viewportHeight)
so that overscroll does not affect cropping.
Crop all the empty space above and below the visible content when autofocus is active. Cropping needs to occur seamlessly and maintain the perceived scroll position.
Consider the following approaches:
Re-render at top/bottom as soon as empty space is exhausted.overscroll-behavior: contain