ademilter/bricklayer

keep scroll position on resize

Opened this issue · 1 comments

I use bricklayer for a very long feed of social media posts and as soon as bricklayer needs to recalculate the columns (resize or change the orientation) it jumps to the top of the page, which is very bad for the user experience. It would be nice to include an option to prevent this and stay at the last scrollposition on resize/orientation change.

f commented

We need to calculate which element is close to the top scroll position, store it and rescroll to it after redraw.

I'm going to think about it.