Skip to content

Conversation

etpinard
Copy link
Contributor

fixes #1251

as mentioned in #1251 (comment) the fix was pretty easy, writing a test for it was a little harder though.

@etpinard etpinard added status: reviewable bug something broken labels Feb 10, 2017
assertScale(this, 1, 1);
});

mouseEvent('mouseup', pos[0] + 50, pos[1]);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fun fact. This test case doesn't need a mouseup event to test what is desired. But, we need to trigger one to not affect other tests downstream (namely in config_test.js).

// scale to individual points to counteract the scale of the trace
// as a whole:
.selectAll('.points').selectAll('.point')
.select('.scatterlayer').selectAll('.points').selectAll('.point')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rreusser would you mind reviewing the line?

Copy link
Contributor

@rreusser rreusser Feb 10, 2017

Choose a reason for hiding this comment

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

That makes sense to me. It's certainly better, though I can't say from direct knowledge that nothing puts stray items in the scatterlayer .

@etpinard etpinard merged commit 7c5a22d into master Feb 10, 2017
@etpinard etpinard deleted the barlayer-no-scale-on-drag branch February 10, 2017 18:24
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.

Bar / histogram traces break on single-ended (zoom) axis drag
2 participants