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 tiny zoombox behavior #4188

Merged
merged 3 commits into from
Sep 13, 2019
Merged

Fix tiny zoombox behavior #4188

merged 3 commits into from
Sep 13, 2019

Conversation

etpinard
Copy link
Contributor

fixes #4156

where zoomboxes smaller than 2*MINDRAG=16px now lead to an axis range relayout

Before:

Peek 2019-09-13 12-04

After:

Peek 2019-09-13 12-10

cc @plotly/plotly_js

- this requirement can lead to visible 1d or 2d zoomboxes
  that do not lead to an axis range relayout, leading to
  confusing behaviour
- lock this down in a test making sure small zoomboxes lead are
  followed by relayout calls.
- that drag(LASSO_PATH) call used to lead a no zoom,
  so this test did not properly check for seletedpoints
  persistence after zoom
@etpinard etpinard added bug something broken status: reviewable labels Sep 13, 2019
@archmoj
Copy link
Contributor

archmoj commented Sep 13, 2019

Brilliant fix.
💃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Zoom doesn't work if not enough pixels are selected on X axis
2 participants