nhn / tui.editor

🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.

Home Page:http://ui.toast.com/tui-editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Change scroll behavior will broken markdown mode.

cary-hu opened this issue · comments

commented

Describe the bug

Set

* {
    scroll-behavior: smooth;
}

then, change to markdown mode, editor will auto scroll infinity.

To Reproduce

image

Expected behavior

Set scroll-behavior: smooth; the markdown mode work well.

Screenshots

Animation

Additional context

Long text content more obvious

Looks very funny.

@cary-hu What is your browser? I want to know your environment information.

commented

I have tried in:

  • Chrome(Version 101.0.4951.54 (Official Build) (64-bit))
    • like the screenshot, scroll infinite
  • Firefox(Version 100.0)
    • works fine, scroll behavior meet expectations
  • Edge(Version 101.0.1210.39 )
    • a little bad, but will goes well in the end

@cary-hu Sorry, one more, please. What's your OS? Is it windows?

commented

Yes

Edition Windows 11 Pro
Version 22H2
Installed on ‎2022/‎5/‎7
OS build 22616.1
Experience Windows Feature Experience Pack 1000.22632.1000.0

@cary-hu Thank you! Actually, I use macOS and It works fine. I'll check it.