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 the shift/option + mouseWheel zoom bug in entropy panel #1188

Merged
merged 1 commit into from
Aug 3, 2020

Conversation

hangzho
Copy link
Contributor

@hangzho hangzho commented Jul 17, 2020

Description of proposed changes

Fix the issue that shift/option + mouseWheel on the entropy panel doesn't update the query strings gmax and gmin.

The root cause of the issue is that the brushFinished method doesn't dispatch changeZoom(this.zoomCoordinates) for the ZoomEvent(ZoomEvent is the event emitted by shift/option + mouseWheel). Added the logic to dispatch changeZoom(this.zoomCoordinates) for ZoomEvent.

Related issue(s)

Fixes #1179
Related to #

Testing

Manually tested the following 3 cases.

  1. shift + mouseWheel on the entropy panel, observed the query strings gmax and gmin get in the URL.
  2. option + mouseWheel on the entropy panel, observed the query strings gmax and gmin get in the URL.
  3. click + drag the up arrow works as before.

@jameshadfield
Copy link
Member

Wonderful! Thanks @hangzho

@jameshadfield jameshadfield merged commit fa43865 into nextstrain:master Aug 3, 2020
@hangzho hangzho deleted the zoom-bug-in-entropy-panel branch August 4, 2020 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

shift,option+mouseWheel zoom bugs in entropy panel
3 participants