jquery-scrollintoview icon indicating copy to clipboard operation
jquery-scrollintoview copied to clipboard

Ability to manually specify the scroll parent

Open scriby opened this issue 10 years ago • 0 comments

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?

scriby avatar Feb 13 '15 21:02 scriby