Skip to content

Commit 13e5493

Browse files
committed
chore: remove lines
1 parent 96e1301 commit 13e5493

File tree

1 file changed

+3
-4
lines changed
  • packages/markdown-editor/src/layouts

1 file changed

+3
-4
lines changed

packages/markdown-editor/src/layouts/main.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@ export const Main = ({ frontMatter, headings, pageMap }: MainProps): ReactElemen
3737
const direction = 'ltr'
3838
const mainHeight = 'calc(100vh - (var(--nextra-navbar-height)))'
3939

40-
const previewScrollHandle = useCallback((event: Event) => {
41-
const target = event.target as HTMLDivElement
42-
const percent = target.scrollTop / target.scrollHeight
40+
const previewScrollHandle = useCallback(() => {
41+
// const target = event.target as HTMLDivElement
42+
// const percent = target.scrollTop / target.scrollHeight
4343

44-
console.log('percent', percent)
4544
if (active.current === 'editor' && previewRef.current) {
4645
const previewHeight = previewRef.current?.scrollHeight || 0
4746
previewRef.current.scrollTop = previewHeight

0 commit comments

Comments
 (0)