As shown in the figure, I hope that when the left function button is clicked, the right ScrollView can follow, and when the right ScrollView scrolls, the left function button can also follow.
Can't say much without seeing the code, but according to docs there should be a binding between (navbar item index * negative value of how many pixels to scroll) and ScrollView
s viewport-y attribute. Something like:
ScrollView {
viewport-y: navbar-index * -200px;
.....
}
For the reverse of it, there should be a callback from ScrollView
s scrolled
callback to the root item which sets the navbar index accordingly.
I suggest you ask questions around Slint framework at it's GitHub discussions page:
They have a very helpful community and generally answer questions promptly. Especially Olivier Goffart one of the founders is very helpful.
Yes, I requested add example for it.