Mikescops / vue-virtual-grid

🖼️ Vue Virtual Grid Rendering
https://www.npmjs.com/package/vue-virtual-grid
MIT License
51 stars 16 forks source link

Stability of scroll position, when changing the width #6

Open tacruc opened 3 years ago

tacruc commented 3 years ago

First oft all thanks for the lib. I just tried it in the demo page and noticed. That if I rotate my phone, from vertical to horizontal I do not see a single picture I have Seen before. E.g. scrolling to section header 4 and rotating I had to scroll quite a bit to be back at the header.

If it is possible I think it would be nice if the top left picture would stay in the top left field shown when changing the width. For languages which are read from right to legt I think it should be the top right picture which stays stable in the screen.

Mikescops commented 3 years ago

Hello, Thanks for reporting this. It's interesting indeed, not sure how i can do this but I will try to solve this for sure.

Mikescops commented 3 years ago

I made a few tests earlier today, and i could not find a proper solution as of now without degrading performances.

tacruc commented 3 years ago

So then lets keep the performant way for now.

MentalGear commented 3 years ago

Indeed, when changing page window width, items are drawn upwards or downwards. It's just a nuance, but of course if the would stay centered, that would be a nice bonus.