Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 7ddd24d2 authored by Nicolas Carion's avatar Nicolas Carion

fix getTrackYFromId

parent 244e4c3b
......@@ -50,7 +50,10 @@ function getTrackIdFromPos(pos) {
function getTrackYFromId(id) {
var result = - scrollView.flickableItem.contentY
for (var i = 0; i < id; i++) {
for (var i = 0; i < trackHeaderRepeater.count; i++) {
if (trackHeaderRepeater.itemAt(i).trackId == id) {
break;
}
result += trackHeaderRepeater.itemAt(i).height
}
return result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment