From a6e1c7a4627cf0ee0f873ed3bd27f438bf1ef64b Mon Sep 17 00:00:00 2001 From: jax Date: Sat, 18 Jul 2026 13:37:38 -0400 Subject: [PATCH] PinDMs: fix scrolling issues when using many pins (#4414) very silly math error... --- src/plugins/pinDms/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/pinDms/index.tsx b/src/plugins/pinDms/index.tsx index ebdd8eaee..624d9ded5 100644 --- a/src/plugins/pinDms/index.tsx +++ b/src/plugins/pinDms/index.tsx @@ -212,7 +212,7 @@ export default definePlugin({ const sectionHeaderSizePx = sections.length * 40; // (header heights + DM heights + DEFAULT_CHUNK_SIZE) * 1.5 // we multiply everything by 1.5 so it only gets unmounted after the entire list is off screen - return (sectionHeaderSizePx + sections.reduce((acc, v) => acc += v + 44, 0) + DEFAULT_CHUNK_SIZE) * 1.5; + return (sectionHeaderSizePx + sections.reduce((acc, v) => acc += v * 44, 0) + DEFAULT_CHUNK_SIZE) * 1.5; }, isCategoryIndex(sectionIndex: number) {