-
Notifications
You must be signed in to change notification settings - Fork 76
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
Horizontal scrolling with react-xarrows #185
Comments
I'm also experiencing this issue. It occurs to me in any scrolling div (both horizontally and vertically) I was able to resolve it by setting the position: relative to another div (inside the scrolling div), inside which the xarrows are located like so:
|
For me, the issue was that the arrows would still be visible when scrolled beyond the bounds of the parent (which has |
Building on this, instead of wrapping the XArrow inside a div, you can directly set the XArrow divContainerStyle.
|
I am creating a horizontally scrollable div with elements like buttons and using react-xarrows to connect those elements.
But when I scroll the div. buttons are moving but the arrows are stuck where they were rendered.
I understand I have to call useXarrows() to the element on whose rendering arrows are dependent, but I cannot call the said hook on buttons since I am calling them using the map callback function.
Is there a workaround for this issue.
The text was updated successfully, but these errors were encountered: