Skip to content

Ability to manually specify the scroll parent #19

@scriby

Description

@scriby

It's nice that the library automatically looks up the DOM for the first scrollable parent, but I have a bit of a corner case where the automatic detection doesn't work.

I have a div (A) whose scrollLeft is manually synchronized with the scrollLeft of another div (B). The element I want to scroll into view is contained in A, but it doesn't appear to be scrollable, even though it really is (A has overflow: hidden).

Would you consider allowing the scroll parent to be manually passed to jquery-scrollintoview to support this corner case?

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