aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/views/Main.tsx2
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx
index 3c1da88cc..f02677d95 100644
--- a/src/client/views/Main.tsx
+++ b/src/client/views/Main.tsx
@@ -87,7 +87,7 @@ FieldLoader.ServerLoadStatus = { requested: 0, retrieved: 0, message: 'cache' };
await CurrentUserUtils.loadUserDocument(info);
setTimeout(() => {
// prevent zooming browser
- document.getElementById('root')!.addEventListener('wheel', event => event.ctrlKey && event.preventDefault(), { capture: true, passive: true });
+ document.getElementById('root')!.addEventListener('wheel', event => event.ctrlKey && event.preventDefault(), true);
const startload = (document as unknown as { startLoad: number }).startLoad; // see index.html in deploy/
const loading = Date.now() - (startload ? Number(startload) : Date.now() - 3000);
const d = new Date();
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index e8fa8b01e..f06e0b551 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -606,7 +606,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection
}
const rows = () => (!this.isStackingView ? 1 : Math.max(1, Math.min(docList.length, Math.floor((this._props.PanelWidth() - 2 * this.xMargin) / (this.columnWidth + this.gridGap)))));
return (
- <>
+ <div key={(heading?.heading ?? '') + 'head'}>
{this._props.isContentActive() && !this.isStackingView ? this.columnDragger : null}
<div style={{ top: this.yMargin }}>
<CollectionMasonryViewFieldRow
@@ -628,7 +628,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection
setDocHeight={this.setDocHeight}
/>
</div>
- </>
+ </div>
);
};