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

1d -> 2d -> 1d zoombox regression fix + drag test maintenance #3950

Merged
merged 8 commits into from
Jun 11, 2019

Conversation

etpinard
Copy link
Contributor

commit 8d0ccb1 fixes #3943 a regression that slipped in 1.48.0 via the plotly_relayouting PR #3888

before https://codepen.io/etpinard/pen/jjEWyR?editors=1010

Peek 2019-06-11 15-50

after https://codepen.io/etpinard/pen/GbgoWx?editors=1010

Peek 2019-06-11 15-53


commit 8806fb7 generalizes our test/jasmine/assets/drag.js helpers, so that we can use them almost everywhere with ee74b28 and c48b5bf. This should make some of our tests less flaky.


The other commits bumped a few tolerance values to make the tests ✅ on my laptop running Chrome 70


@plotly/plotly_js looking for a quick review to release 1.48.2 asap. Thanks!

etpinard added 8 commits June 11, 2019 14:37
- to accept `path` (on top of dpos/pos0)
- to accept `touch` option to emulate touch drag
- first reason, why don't need to
- second reason, mutation aren't reset meaning going from 2d back to 1d
  zoombox lead to wrong rendering after mouseup and a discrepency
  between gd.layout(x|y).range and gd._fullLayout(x|y).range values
... to pass on etpinard's laptop running Chrome 70
... to pass ok on etpinard's laptop running Chrome 70
... to make test pass ok on etpinard's laptop running Chrome 70
... to alleviate problems when running full `npm run test-jasmine`
    suite at once.
@etpinard etpinard added bug something broken type: maintenance labels Jun 11, 2019
* - {function} start
* - {function} end
*/
function makeFns(opts) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can now use the same drag helpers by passing a path, start/end position, start position + delta, etc..

@archmoj
Copy link
Contributor

archmoj commented Jun 11, 2019

Looking good to me.
💃 if @antoinerg has no comment?

@etpinard etpinard merged commit 24deba6 into master Jun 11, 2019
@etpinard etpinard deleted the 1d-2d-drag-bug branch June 11, 2019 20:42
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.

Bug in simple zoom in
2 participants