codex-blackboard icon indicating copy to clipboard operation
codex-blackboard copied to clipboard

sticky scroll-to-bottom as images load appears to be unreliable

Open cscott opened this issue 12 years ago • 2 comments

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.

cscott avatar Jan 18 '13 08:01 cscott

Maybe fixed now?

cscott avatar Jan 15 '15 23:01 cscott

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.

Torgen avatar Jan 16 '19 18:01 Torgen