From 139823af10370f1e6988c1fcf476af5d5d5d0a10 Mon Sep 17 00:00:00 2001 From: Dan Ziv Date: Fri, 5 Mar 2021 09:29:15 +0200 Subject: [PATCH] FEC-10941 --- src/dash-thumbnail-controller.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dash-thumbnail-controller.js b/src/dash-thumbnail-controller.js index 2cec06dc..5fe8aa9f 100644 --- a/src/dash-thumbnail-controller.js +++ b/src/dash-thumbnail-controller.js @@ -17,8 +17,7 @@ class DashThumbnailController { } selectTrack(track: ImageTrack): void { - this._tracks.forEach((t: ImageTrack) => (t.active = false)); - track.active = true; + this._tracks.forEach((t: ImageTrack) => (t.index === track.index ? (t.active = true) : (t.active = false))); } getTracks(): Array {