getCurrentDraggingLine method
Implementation
int getCurrentDraggingLine(double offset) {
for (int i = 0; i < lyrics.length; i++) {
var scrollY = computeScrollY(i);
if (offset > -1) {
offset = 0;
}
if (offset >= -scrollY) {
return i;
}
}
return lyrics.length;
}