-
Notifications
You must be signed in to change notification settings - Fork 14
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 lines are again redrawn #798
Conversation
Sadly this re-introduce double sorting when changing a region. Fixes #797
Fix demonstrated after merging #798 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with straight lines, cannot see any unintended consequences. Definitely fixes #797.
Quick check-in question: can you think of any unintended consequences of this @nikolai-b or @usr110 ? I've had a look over the code and quick test and it seems fine but thought it worth checking. Thanks! |
Changing the reactive $plot variable is triggering dynamic $plot getters to be reloaded: this means that line sorting is causing the zones to be re-plotted
@Robinlovelace thank you for the quick test but I just wasn't happy that we were re-sorting the lines twice when changing region. I've fixed this in 440fe02 and noticed that we were also re-drawing zones af9c840 |
I think this is a definite improvement although don't have a very strong understanding of the this part of the code. @nikolai-b when you say we're re-drawing the zones, could that also be slowing down the initial load? If so I'd suggest merging this into |
Great work @nikolai-b Just testing it and found an interesting phenomena. For Edit: Noticed that the |
The lines are not redrawn - sorry about it @nikolai-b Two things confused me:
thanks! |
Sadly this re-introduce double sorting when changing a region.
Fixes #797