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

Question: how to implement y-scroll on overflow instead of zoom? #5

Open
7ruth opened this issue Apr 2, 2018 · 2 comments
Open

Question: how to implement y-scroll on overflow instead of zoom? #5

7ruth opened this issue Apr 2, 2018 · 2 comments

Comments

@7ruth
Copy link

7ruth commented Apr 2, 2018

Hello, loving this library and how cleanly it represents my git commits.

I have one issue that I haven't been able to figure out. Is there a way, when I have a both, isVertical and isStatic set to true, to have additional nodes placed outside the height of the graph be scrollable to (instead of graph zoom on scroll).

Thank you for any ideas/ feedback.

@antonKalinin
Copy link
Owner

Hi @7ruth, it looks like you can create outer container with overflow-y and place there graph container that would be bigger. If I understood incorrect please provide more info or image. Thanks!

@7ruth
Copy link
Author

7ruth commented Apr 4, 2018

Hi @antonKalinin, thank you for a quick response.

Here are some screenshots. I did exactly what you mention, the component is wrapped in a div with smaller height and overflow-y set to scroll. Here is the effect:

screen shot 2018-04-04 at 1 00 07 pm

At the start, all looks normal, overflowing as expected

screen shot 2018-04-04 at 1 00 18 pm

Initial scroll down also works fine

screen shot 2018-04-04 at 1 11 43 pm

but as you scroll back up the graph also zooms in

screen shot 2018-04-04 at 1 00 37 pm

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

2 participants