fix list when scrolled

This commit is contained in:
yugecin 2016-09-27 17:26:29 +02:00
parent f82f880670
commit 825a8a44fe

View File

@ -100,7 +100,7 @@ public class ItemList {
}
y -= 5;
int index = y / (Fonts.MEDIUM.getLineHeight() + 5);
index -= start;
index += start;
if (index >= 0 && index < items.length) {
observer.update(null, index);
visible = false;