virtua icon indicating copy to clipboard operation
virtua copied to clipboard

Add restore scroll option to CacheSnapshot getter

Open inokawa opened this issue 1 year ago • 1 comments

fix #415

TODO support scroll from bottom usecase

inokawa avatar Mar 28 '24 14:03 inokawa

It would be great to support not only scroll from bottom use case, but also allow to set any initial scroll position. Something like this:

initialScrollOffset?: number;
initialScrollIndex?: number |  ScrollToIndexOpts & { index: number };

mariia-mitiureva avatar Apr 22 '24 18:04 mariia-mitiureva

Update to my last comment: initialScrollOffset might be hard to implement, if it's not restoring from snapshot case. It probably would need to do some measurements in order to work correctly. So personally for me initial index (with ScrollToIndexOpts support) would be enough :)

mariia-mitiureva avatar May 17 '24 10:05 mariia-mitiureva

Prefer #455

inokawa avatar Jun 02 '24 11:06 inokawa