Reproduction link
Steps to reproduce
I am using the Layout with the header form antd and once that I do a scroll in the screen and my antd buttons are hidden by the header, the tour does not force tot he screen to un-hide the button.
For reproduce it only click in the link and do all the scroll that you can, then, click "beging tour" button
What is expected?
That the tour component force to scroll when the element is hide by another element too
What is actually happening?
The tour component only force the scroll when is a component that is not in the viewport
| Environment | Info |
| ------------ | ------------ |
| antd | 5.16.4 |
| React | 18.2.0 |
| System | Mac |
| Browser | Google Chrome |
2条答案
按热度按时间xwbd5t1u1#
Start a new pull request in StackBlitz Codeflow .
holgip5t2#
We use
scrollIntoView
, which cannot meet your demands with fixed element.You can scroll with offset by listening
current
of Tour.