don't enable grouping. as it works fine with grouping.
delete one item from the list.
Make sure to choose another item in scrollIndex.
Repeat this couple of time and at some point setScrollTopAndClosestNode will trigger both forward and backward search section.
Forward search will correctly set the pos but then backward search will reset it back to 0 which will force the sticky tree to start rendering all 30K plus notes and the entire app hangs.
This small check will ensure that if pos is calculated it won't go inside backward search block.
…cuted and eventually cause pos to 0. Repro steps
Forward search will correctly set the pos but then backward search will reset it back to 0 which will force the sticky tree to start rendering all 30K plus notes and the entire app hangs.
This small check will ensure that if pos is calculated it won't go inside backward search block.