-
Notifications
You must be signed in to change notification settings - Fork 32
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
Retain row and state selection after refresh #49
Conversation
I think we should test it with actual states. The GAP states doesn't have fixed range and mostly depends on the zoom levels. Could you please test it with actual states. |
@tahini I believe this functionality is correct. The GAP states keep changing based on the zoom level. So it is highly unlikely to identify the state. Any thoughts on this? |
I thought I had selected a state at first! I clicked on something, very thin, true, but still, it highlighted the visible state and the state remains hightlighted as I zoom in. This may be unrelated with this PR, but it's a bug anyway. If the state appears to be selected, then I'd expect to zoom in and remain in that highlighted state. |
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.
I could reproduce the bug and it works for normal states.
As a suggestion when/if you're going to look at the gap states also, instead of row id, start, end to compare with previous selection, maybe you could use row id and the intersection of the currently selected time instead (but I have no idea how the selected time works, so maybe I'm completely wrong)
The problem with this approach is say at initial zoom level we have selected a GAP state. As you zoom in, the same GAP state can get split into two or more GAP states and it's possible that no state has intersection in our selection range. I believe splitting the same state into multiple states based on the zoom level would make it difficult to identify the initial selected state. I would have to check this behavior in trace compass. |
Signed-off-by: muddana-satish <[email protected]>
fixes #50
Signed-off-by: muddana-satish [email protected]