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

edgeScroll: define which scroll container to scroll #29

Closed
dswbx opened this issue Aug 16, 2020 · 4 comments
Closed

edgeScroll: define which scroll container to scroll #29

dswbx opened this issue Aug 16, 2020 · 4 comments

Comments

@dswbx
Copy link

dswbx commented Aug 16, 2020

just evaluating this library and looks promising, thanks a lot!

Although something I've encountered: My tree is within a sidebar component (fixed, own scroll). So having a long tree I need scrolling. Enabling edgeScroll though scrolls down the whole document (therefore the main component) instead of my sidebar only. Is there a way to specify which container should be scrolled?

@phphe
Copy link
Owner

phphe commented Aug 17, 2020

No. I am going to add it.

@dswbx
Copy link
Author

dswbx commented Aug 17, 2020

@phphe thanks a lot :)

@phphe
Copy link
Owner

phphe commented Sep 29, 2020

try 2.0.4-beta2 . I added prop: edgeScrollSpecifiedContainerX, edgeScrollSpecifiedContainerY

edgeScrollSpecifiedContainerX?: HTMLElement | ((store: Store, opt: Options) => HTMLElement);
edgeScrollSpecifiedContainerY?: HTMLElement | ((store: Store, opt: Options) => HTMLElement);

@dswbx
Copy link
Author

dswbx commented Sep 29, 2020

Awesome, thank you!

@phphe phphe closed this as completed Sep 29, 2020
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