Преглед изворни кода

Re-run off-screen classification after scroll animation completes

Yuki Takei пре 1 месец
родитељ
комит
320a7acbc0
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      packages/editor/src/client/stores/use-collaborative-editor-mode.ts

+ 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);
   };
 };