diff options
| author | bobzel <zzzman@gmail.com> | 2020-12-15 21:22:39 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-12-15 21:22:39 -0500 |
| commit | d222ccf613fa7dc1edabc325d226fed4f88d2db0 (patch) | |
| tree | c5de984615577648d633fa22095524adbc051414 /src/client/views/collections/CollectionView.tsx | |
| parent | a6de26815ba43ae8cbc93cce91f34aecf6542b61 (diff) | |
fixed some events with groups - they remain active when in "background"
Diffstat (limited to 'src/client/views/collections/CollectionView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionView.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionView.tsx b/src/client/views/collections/CollectionView.tsx index 8c0cdba07..90806857f 100644 --- a/src/client/views/collections/CollectionView.tsx +++ b/src/client/views/collections/CollectionView.tsx @@ -108,8 +108,7 @@ export class CollectionView extends Touchable<CollectionViewProps> { active = (outsideReaction?: boolean) => (this.props.isSelected(outsideReaction) || this.props.rootSelected(outsideReaction) || - this.props.Document.forceActive || - this.props.Document._isGroup || + (this.props.layerProvider?.(this.props.Document) !== false && (this.props.Document.forceActive || this.props.Document._isGroup)) || this._isChildActive || this.props.renderDepth === 0) ? true : @@ -388,7 +387,7 @@ export class CollectionView extends Touchable<CollectionViewProps> { CollectionView: this, }; return (<div className={"collectionView"} onContextMenu={this.onContextMenu} - style={{ pointerEvents: (this.props.Document._isGroup && !SnappingManager.GetIsDragging()) ? "all" : this.props.layerProvider?.(this.props.Document) === false ? "none" : undefined }}> + style={{ pointerEvents: this.props.layerProvider?.(this.props.Document) === false ? "none" : undefined }}> {this.showIsTagged()} {this.collectionViewType !== undefined ? this.SubView(this.collectionViewType, props) : (null)} {this.lightbox(DocListCast(this.props.Document[this.props.fieldKey]).filter(d => Cast(d.data, ImageField, null)).map(d => |
