diff options
Diffstat (limited to 'res/qml/Library.qml')
-rw-r--r-- | res/qml/Library.qml | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/res/qml/Library.qml b/res/qml/Library.qml index 7b88561f25..d6589927ef 100644 --- a/res/qml/Library.qml +++ b/res/qml/Library.qml @@ -28,9 +28,7 @@ Item { if (rowCount == 0) return ; - let newIndex = currentIndex = (currentIndex + value) % rowCount; - while (newIndex < 0)newIndex += rowCount - currentIndex = newIndex; + currentIndex = Mixxx.MathUtils.positiveModulo(currentIndex + value, rowCount); } function loadSelectedTrackIntoNextAvailableDeck(play) { |