Просмотр исходного кода

Re-run off-screen classification after scroll animation completes

Yuki Takei 3 дней назад
Родитель
Сommit
320a7acbc0

+ 2 - 0
packages/editor/src/client/stores/use-collaborative-editor-mode.ts

@@ -72,6 +72,8 @@ export const createScrollToRemoteCursorFn = (
 
     setTimeout(() => {
       scrollDOM.style.scrollBehavior = prevBehavior;
+      // Re-run off-screen classification after scroll animation completes
+      view.dispatch({});
     }, 500);
   };
 };