mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
fix(app): keep the chat scroller pinned to the end while it resizes (#1860)
This commit is contained in:
1 parent
a2099fb0e2
commit
2af0405317
36 files changed
+171
-191
No files matched your search
@@ -46,7 +46,7 @@ export function useWindowFocusVideoControl({
|
||||
}
|
||||
};
|
||||
const handleBlur = () => {
|
||||
const node = scrollerRefRef.current.current?.getScrollerNode();
|
||||
const node = scrollerRefRef.current.current?.getViewportElement();
|
||||
if (document.activeElement instanceof HTMLElement && node?.contains(document.activeElement)) {
|
||||
const scrollTop = node.scrollTop;
|
||||
document.activeElement.blur();
|
||||
|
||||
Reference in new issue
Block a user