edgeScroll: define which scroll container to scroll
dswbx opened this issue · 4 comments
dswbx commented
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 commented
No. I am going to add it.
phphe commented
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 commented
Awesome, thank you!