|
|
@@ -18,7 +18,7 @@ export const PageEditorReadOnly = react.memo((): JSX.Element => {
|
|
|
const previewRef = useRef<HTMLDivElement>(null);
|
|
|
const [previewRect] = useRect(previewRef);
|
|
|
|
|
|
- const { scrollEditorHandler, scrollPreviewHandler } = useScrollSync(GlobalCodeMirrorEditorKey.MAIN, previewRef);
|
|
|
+ const { scrollEditorHandler, scrollPreviewHandler } = useScrollSync(GlobalCodeMirrorEditorKey.READONLY, previewRef);
|
|
|
const scrollEditorHandlerThrottle = useMemo(() => throttle(25, scrollEditorHandler), [scrollEditorHandler]);
|
|
|
const scrollPreviewHandlerThrottle = useMemo(() => throttle(25, scrollPreviewHandler), [scrollPreviewHandler]);
|
|
|
|