I have 4 ListViews and I want to synchronize their scroller, each list has the same number of elements.
I have more than 30.000 elements in each lists.
Here is an example of what the code looks like :
verticalScroller1.valueChanged += delegate {Synchronize(verticalScroller1.value)}
verticalScroller2.valueChanged += delegate {Synchronize(verticalScroller2.value)}
verticalScroller3.valueChanged += delegate {Synchronize(verticalScroller3.value)}
verticalScroller4.valueChanged += delegate {Synchronize(verticalScroller4.value)}
Synchronize(value)
{
verticalScroller1.value = value
verticalScroller2.value = value
verticalScroller3.value = value
verticalScroller4.value = value
Debug.log(scroller4.value) // scroller4.value = scroller4.highValue, scroller4.value != scroller1.value
}
When scrolling with the scroller1 bar (not using the mouse wheel), the highValues of the other scrollers sometimes won’t update correctly near the bottom of the scrollbar, and only the first listView will have a normal “scrolling behavior”.
Hope I made myself clear enough as I am not authorized to share code.
I guess my only solution is to merge the listViews into one and use columns, could someone confirm this ?