Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling does not work on modals. #64

Open
EliasPh opened this issue Aug 18, 2020 · 2 comments
Open

Scrolling does not work on modals. #64

EliasPh opened this issue Aug 18, 2020 · 2 comments

Comments

@EliasPh
Copy link

EliasPh commented Aug 18, 2020

Hi,
i am implementing a tour through my homepage, which uses modals. (ng-bootstrap - https://ng-bootstrap.github.io/)
At one step in my tour i am opening a modal (that works great) but scrolling to a selector at the bottom of that modal does not work. Do you have any idea for a workaround?

Thanks for this very handy tool!

@RobertCMusk
Copy link
Contributor

The current code only scrolls the body to get content into view. It would be a new feature to change the target that is scrolled. Have you tried defining an action in the tourStep definition? You should be able to write your own code to scroll the modal ad add it to the tourStep definition.

@joaorodr84
Copy link

I am going through a similar problem. I just wanted to be able to select which element would be scrolled. I think it would be a very useful feature to add in the upcoming releases.

@RobertCMusk I like your idea to use action, but it seems rather difficult because every calculation is performed relative to the body. I think I would have to write a lot of code. Did you ever do it? Is there a working example somewhere? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants