humbleui

adamfrey 2024-02-11T20:58:17.586979Z

I'm creating an app with humbleUI's vscrollbar , making a big vertical list of elements. Scrolling down the list works fine, until I update my UI state atom in any way and request a new frame with humbleui.window/request-frame . At that point my vscrollbar jumps back up to the top. Intuitively this makes sense since I'm re-rendering a blank page from the root. My question: Are there code examples which use vscrollbar and keep track of some Y offset so that they can make state changes while keeping the vscroll state the same?

Niki 2024-02-11T21:03:16.407229Z

Thatโ€™s the whole reason why we are integrating vdom. To keep the component state. Soon to be merged into main

๐Ÿ€ 1
adamfrey 2024-02-11T21:03:42.024599Z

ok, I was going to ask if I should wait for vdom ๐Ÿ™‚ Thanks, Niki