aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-02-27 16:05:35 -0500
committerbobzel <zzzman@gmail.com>2025-02-27 16:05:35 -0500
commit2838b8d98ab88df974fd52ba96cf5046d99298cb (patch)
tree802a5c2b52ea031f5089a07e956760a90c2d1e0f /src
parentbcf3b005d55ec851374049f4c188d96ffc7a7c8b (diff)
fixed passive wheel prevention on document.root. fixed key waring on masonry view.
Diffstat (limited to 'src')
-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>
);
};