|
@@ -353,10 +353,13 @@ class FollowMe {
|
353
|
353
|
_onNextOnStage(id) {
|
354
|
354
|
var clickId = null;
|
355
|
355
|
var pin;
|
|
356
|
+ // if there is an id which is not pinned we schedule it for pin only the
|
|
357
|
+ // first time
|
356
|
358
|
if(typeof id !== 'undefined' && !VideoLayout.isPinned(id)) {
|
357
|
359
|
clickId = id;
|
358
|
360
|
pin = true;
|
359
|
361
|
}
|
|
362
|
+ // if there is no id, but we have a pinned one, let's unpin
|
360
|
363
|
else if (typeof id == 'undefined' && VideoLayout.getPinnedId()) {
|
361
|
364
|
clickId = VideoLayout.getPinnedId();
|
362
|
365
|
pin = false;
|