Skip to content

Unable to Maintain Scroll Position When values Update #56

@yuanhongyu123

Description

@yuanhongyu123

I'm using this library to display monitoring logs with scrolling functionality, but I'm encountering a scrolling issue.

Every time a new log line is loaded, the cm-scroller always automatically resets the scrollbar to the very top. Even when I added an outer div wrapper for scrolling, I found that forcibly setting the scrollbar to the bottom doesn't work.

What I want to achieve:

Allow free scrolling (without automatic resetting), or

Lock the scrollbar to the bottom

How can I implement this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions