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

Fix crash when moving nodes to the top #29

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

florianmari
Copy link
Contributor

@florianmari florianmari commented Jan 5, 2024

Not 100% sure about this one but the crash happened to me a lot, moving a node to the top lead to a crash because index is negative, just put the condition after the offset correction and seems to resolve the crash issue

Edit: Finally I have prevented bug with condition around the for to avoid any potential creation of other bugs, need to find later why this index can become negative, crash it not happening anymore

@florianmari
Copy link
Contributor Author

Next step: need to fix the drag animation

@florianmari florianmari changed the title Fix crash when moving nodes Fix crash when moving nodes to the top Jan 5, 2024
@remstos
Copy link
Contributor

remstos commented Jan 7, 2024

Knowing why there’s a negative index would be nice, be otherwise that’s a cool guard 🙏

@florianmari
Copy link
Contributor Author

Yes totally I'm gonna invest deeper next week on that

@florianmari florianmari added the bug Something isn't working label Jan 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working WIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants