-
Notifications
You must be signed in to change notification settings - Fork 5
Save zoom state when writing stimulus parameters #497
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
base: main
Are you sure you want to change the base?
Conversation
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 would start on this one and think about variable lifetimes a bit more.
551758b
to
5810ddb
Compare
GIFs of behavior: Save Zoom State [Note: no change since the last update in behavior, but implementation has been updated] Reset Zoom After removing the zoom-in boundary checking in 631c78f, it is possible for users to zoom in excessively and lose all reference in the axis. The Reset Zoom button can get them out of this state now. |
- Clamp the maximum height of the scale bar to be 25% of the height of the Y-Axis
- Instead of requiring user to press Apply button, leaving the control or pressing enter causes and stimulus update.
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.
See my comment
@jonnew With the new changes, if the user has not selected a contact then they could be receive the same warning multiple times if they are setting stimulus parameters without selecting a contact: ![]() This warning fires whenever they leave the current UI element, so if they are tabbing through the controls and aren't changing parameters, the same warning pops up. Additionally, this commit also disrupts the tab order, with the new UI element now occurring after the buttons instead of before. I understand the intent behind these changes, and I think that we should probably get rid of the pop-up window so that users can freely modify parameters without selecting a contact. This way, they can get the benefit of immediate updates if they have a contact selected, or they can deselect all contacts and set the parameters they want before choosing a contact and pressing Apply. I will address these changes, and also fix the zoom state when first drawing a stimulus. |
- Reset zoom state when drawing a stimulus after none was presented; the update to save the zoom state inadvertently caused the pane to remain blank in this scenario - Remove dialog warning that no contacts are selected after the addition of automatic updates - Correct the tab order of UI elements
This PR now saves the zoom state when writing stimulus parameters, and reapplies the zoom state so that any changes can be immediately viewed without needing to zoom in again.
Example GIF

Example GIF: Timebase Changes

Note that this may conflict with #459, since that PR refactors this class to be more generalized. Care needs to be taken that whichever one gets merged first is brought back into the other one so that the behavior remains correctly fixed.
Fixes #349