Skip to content

Conversation

@victorlin
Copy link
Member

Description of proposed changes

Render this button useless when the view is not zoomed.

Related issue(s)

Follow-up to #1684 (comment)

Checklist

This button is a single tab, not part of a tab group.
Comment on lines +515 to +516
case types.CHANGE_ZOOM: // this is the entropy panel zoom
return {...state, zoomMin: action.zoomc[0], zoomMax: action.zoomc[1]};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember disabling this as it caused bugs, or maybe unnecessary renders, but I can't remember the specifics and 2a063a7 doesn't spell them out either. I'll do some more testing when the PR's ready to go!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or maybe unnecessary renders

This is it I think. With these changes we now trigger two calls to update rather than one. The first has no zoom information, the second sets min/max to the overall zoom bounds. (Sometimes three calls, but my suggested changes in #1947 will limit it to two calls.)

I don't think this is blocking, although would be worth spending a small amount of time to see if the logic can be improved so there's only one update call.

Render this button useless when the view is not zoomed.
@victorlin victorlin force-pushed the victorlin/fix-entropy-reset-2 branch from 2cbc1fd to e23e929 Compare March 31, 2025 16:53
@victorlin victorlin temporarily deployed to auspice-victorlin-fix-e-cq5zoc March 31, 2025 16:53 Inactive
@victorlin victorlin requested a review from jameshadfield March 31, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants