mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-02-22 05:01:43 +01:00
fix video background pause for collapsed group
This commit is contained in:
parent
080346f639
commit
812669cdcf
@ -21,6 +21,8 @@ const BookmarkTile = function({
|
||||
preview = false
|
||||
} = {}) {
|
||||
|
||||
this.data = bookmarkData;
|
||||
|
||||
this.element = {
|
||||
bookmark: node('div|class:bookmark'),
|
||||
front: node('div|class:bookmark-front'),
|
||||
|
@ -21,6 +21,8 @@ export const GroupArea = function({
|
||||
groupData = {}
|
||||
} = {}) {
|
||||
|
||||
this.data = groupData;
|
||||
|
||||
this.element = {
|
||||
group: node('div|class:group'),
|
||||
header: node('div|class:group-header'),
|
||||
@ -233,9 +235,9 @@ export const GroupArea = function({
|
||||
},
|
||||
video: () => {
|
||||
|
||||
if (bookmark.tile.current.length > 0) {
|
||||
bookmark.tile.current.forEach((item, i) => {
|
||||
bookmark.tile.current.forEach((item, i) => {
|
||||
|
||||
if (item.data.position.origin.group === groupData.position.origin) {
|
||||
if (item.video) {
|
||||
if (groupData.group.collapse) {
|
||||
item.video.pause();
|
||||
@ -243,9 +245,9 @@ export const GroupArea = function({
|
||||
item.video.play();
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user