summaryrefslogtreecommitdiff
path: root/source/features/minimize-user-comments.tsx
diff options
context:
space:
mode:
authorGravatar Laxman <notlmn@outlook.com> 2019-09-03 00:22:04 +0530
committerGravatar Federico Brigante <github@bfred.it> 2019-09-03 01:52:04 +0700
commit035d8419e70d630e9c9293f0b97e0999f68db80d (patch)
tree4ebb0769c24202938961de52dd9005365fc0a316 /source/features/minimize-user-comments.tsx
parent3b366f6d5c8596dadeb4efa012becdfb233b6144 (diff)
downloadrefined-github-035d8419e70d630e9c9293f0b97e0999f68db80d.tar.gz
refined-github-035d8419e70d630e9c9293f0b97e0999f68db80d.tar.zst
refined-github-035d8419e70d630e9c9293f0b97e0999f68db80d.zip
Restore `toggle-everything-with-alt` feature (#2087)19.9.3
Co-authored-by: Federico Brigante <opensource@bfred.it>
Diffstat (limited to 'source/features/minimize-user-comments.tsx')
-rw-r--r--source/features/minimize-user-comments.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/features/minimize-user-comments.tsx b/source/features/minimize-user-comments.tsx
index 8fd2e5ac..79c9b940 100644
--- a/source/features/minimize-user-comments.tsx
+++ b/source/features/minimize-user-comments.tsx
@@ -44,7 +44,9 @@ async function onButtonClick(event: React.MouseEvent<HTMLButtonElement>): Promis
}
await setMinimizedUsers(minimizedUsers);
- anchorScroll(minimizeMutedUserComments, comment);
+ const resetScroll = anchorScroll(comment);
+ await minimizeMutedUserComments();
+ resetScroll();
}
async function handleMenuOpening(event: DelegateEvent): Promise<void> {