fix list when scrolled
This commit is contained in:
@@ -100,7 +100,7 @@ public class ItemList {
|
|||||||
}
|
}
|
||||||
y -= 5;
|
y -= 5;
|
||||||
int index = y / (Fonts.MEDIUM.getLineHeight() + 5);
|
int index = y / (Fonts.MEDIUM.getLineHeight() + 5);
|
||||||
index -= start;
|
index += start;
|
||||||
if (index >= 0 && index < items.length) {
|
if (index >= 0 && index < items.length) {
|
||||||
observer.update(null, index);
|
observer.update(null, index);
|
||||||
visible = false;
|
visible = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user