Skip to content

Disable Automatic Scrolling on Selection #391

@aigyptios

Description

@aigyptios

I apologize in advance if this question has already been asked/request has already been made--I searched the issue tracker for anything like this and I was not able to find anything specifically targeting this issue, though it's related to #259 and #257

Is your feature request related to a problem? Please describe.
I'm working on a project and we'd like to be able to disable the automatic centering of the most recently selected node. Right now, whenever we select a node, the scrollTop is set due to:

scrollableTarget.scrollTop = activeLi.offsetTop - (scrollableTarget.clientHeight - activeLi.clientHeight) / 2

and this makes it jump a bit, which we want to avoid.

Describe the solution you'd like
I'm not sure whether it's already possible, but is there a way to disable this? Perhaps by exposing a prop, if it doesn't clutter the API?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions