We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 311381f commit 2646f5bCopy full SHA for 2646f5b
app/public/js/common/queueService.js
@@ -166,6 +166,14 @@ app.factory('queueService', function() {
166
}
167
168
this.list.splice(position, 1);
169
+
170
+ // keep current playing track in the same position
171
+ // after a track removed from the list
172
+ if ( this.currentPosition > position ) {
173
+ this.currentPosition = --this.currentPosition;
174
+ } else if ( this.currentPosition < position ) {
175
+ this.currentPosition = this.currentPosition++;
176
+ }
177
};
178
179
// expose Queue for debugging ONLY
0 commit comments