This commit is contained in:
+5
-5
@@ -263,11 +263,11 @@ function paintGrouping() {
|
||||
ui.joined.hidden = inside.length === 0;
|
||||
// Grouped rooms share the host's transport, so one of them playing means
|
||||
// the whole group is -- and the tint goes on the group's card.
|
||||
const groupPlaying = inside.some((node) => node.classList.contains('playing'));
|
||||
ui.source.classList.toggle('playing', groupPlaying);
|
||||
// A film on the Zidoo also moves the AVR up. The Zidoo does not say whether
|
||||
// it is paused, so a loaded film counts, and it gets no tint.
|
||||
ui.source.classList.toggle('on-top', groupPlaying || Boolean(avrNowPlaying));
|
||||
// A film running on the Zidoo counts as the AVR playing too, grouped rooms or not.
|
||||
const playing = inside.some((node) => node.classList.contains('playing'))
|
||||
|| avrNowPlaying?.play_state === 'play';
|
||||
ui.source.classList.toggle('playing', playing);
|
||||
ui.source.classList.toggle('on-top', playing);
|
||||
}
|
||||
|
||||
/* Press and hold to keep moving, accelerating as you hold. */
|
||||
|
||||
Reference in New Issue
Block a user