fix list when scrolled
This commit is contained in:
parent
f82f880670
commit
825a8a44fe
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user