First thank you for providing such a cool component. I want a feature to be added that is allow to set offset x/y as arguments.
In some scenarios, the page has a header fixed on top. The page content has a marginTop so that the main content is scrollable with the document body scroller. Then scroll-into-view doesn't work well because the target dom node is hidden by the top header. If it allows set a offset x to be the header height, the problem will be resolved.
Hi @yiminghe ,
First thank you for providing such a cool component. I want a feature to be added that is allow to set offset x/y as arguments.
In some scenarios, the page has a header fixed on top. The page content has a marginTop so that the main content is scrollable with the document body scroller. Then scroll-into-view doesn't work well because the target dom node is hidden by the top header. If it allows set a offset x to be the header height, the problem will be resolved.
Best regards, Nate