Фикс чата
This commit is contained in:
@@ -200,9 +200,21 @@ export default function ChatView({ onStartCall, onStartGroupCall }: { onStartCal
|
||||
container.scrollTop = targetEl.offsetTop - 60;
|
||||
} else {
|
||||
container.scrollTop = container.scrollHeight;
|
||||
requestAnimationFrame(() => {
|
||||
if (container) container.scrollTop = container.scrollHeight;
|
||||
});
|
||||
setTimeout(() => {
|
||||
if (container) container.scrollTop = container.scrollHeight;
|
||||
}, 100);
|
||||
}
|
||||
} else {
|
||||
container.scrollTop = container.scrollHeight;
|
||||
requestAnimationFrame(() => {
|
||||
if (container) container.scrollTop = container.scrollHeight;
|
||||
});
|
||||
setTimeout(() => {
|
||||
if (container) container.scrollTop = container.scrollHeight;
|
||||
}, 100);
|
||||
}
|
||||
setScrollReady(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user