codex-blackboard
codex-blackboard copied to clipboard
sticky scroll-to-bottom as images load appears to be unreliable
There's an img onload handler that should ensure that we stay stuck to the bottom even if images load slowly. This doesn't always seem to work.
Maybe fixed now?
If the image takes longer than a second to load, the 1s timeout from scrollHack from adding the element to the page has expired by the time the image loads, and the bottom element has scrolled away before the onload handler runs. Perhaps start the image as 1px square, then expand in the onload handler after touchSelfScroll.