mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
TASK-conversation-console-workflow restore refresh viewport with positional scroll API
This commit is contained in:
1 parent
a7e84cf553
commit
062bcc5239
1 file changed
+1
-1
+1
-1
@@ -1162,7 +1162,7 @@ const refreshScheduler = globalThis.TorchLiveRefresh.createScheduler({
|
||||
globalThis.requestAnimationFrame(() => globalThis.requestAnimationFrame(() => {
|
||||
if (renderGeneration !== appliedRefreshes) return;
|
||||
if (viewportBeforeRender && consoleViewRouter.userIntentVersion() === userIntentAtRender) {
|
||||
globalThis.scrollTo?.({ ...viewportBeforeRender, behavior: 'instant' });
|
||||
globalThis.scrollTo?.(viewportBeforeRender.left, viewportBeforeRender.top);
|
||||
}
|
||||
if (renderGeneration === 1) consoleViewRouter.afterInitialLayout();
|
||||
status.dataset.generation = String(renderGeneration);
|
||||
|
||||
Reference in new issue
Block a user