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

Update react-moveable and disable snap digits again #941

Merged
merged 1 commit into from Apr 1, 2020

Conversation

swissspidy
Copy link
Collaborator

Fixes #936

@swissspidy swissspidy added the Dependencies Pull requests that update a dependency file label Apr 1, 2020
@swissspidy swissspidy requested a review from wassgha April 1, 2020 16:13
@github-actions
Copy link
Contributor

github-actions bot commented Apr 1, 2020

Size Change: +63 B (0%)

Total Size: 510 kB

Filename Size Change
assets/js/edit-story.js 440 kB +63 B (0%)
ℹ️ View Unchanged
Filename Size Change
assets/css/edit-story.css 3.01 kB 0 B
assets/css/stories-dashboard.css 206 B 0 B
assets/js/stories-dashboard.js 67.3 kB 0 B

compressed-size-action

@@ -273,7 +273,7 @@ function MultiSelectionMovable({ selectedElements }) {
verticalGuidelines={canSnap ? [0, canvasWidth / 2, canvasWidth] : []}
elementGuidelines={otherNodes}
snapGap={canSnap}
isDisplaySnapDigit={true}
isDisplaySnapDigit={false}
Copy link
Contributor

Choose a reason for hiding this comment

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

What was this doing, that is now not necessary?

Copy link
Contributor

Choose a reason for hiding this comment

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

It prints actual distances, which was pretty nice. Unfortunately, at lower resolutions (when our canvas is resized responsively) these numbers are scaled and not in our "data pixels". So it's better to disable for now. Hopefully eventually we can specify our "formatter" callback where we could reconcile this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moveable had a bug that still showed numbers when passing false

#884 temporarily turned numbers on again.

Now the bug seems to be fixed.

See daybrush/moveable#200 for background

@swissspidy swissspidy merged commit a251772 into master Apr 1, 2020
@swissspidy swissspidy deleted the update/moveable branch April 1, 2020 16:44
obetomuniz added a commit that referenced this pull request Apr 1, 2020
…working

* master: (50 commits)
  Update react-moveable and disable snap digits again (#941)
  Template Animation: Added move and repeater animation (#618) (#881)
  Fix storybook hierarchy (#939)
  Fix spinner / progress bar when saving (#937)
  Change placeholder text for pre-publish panel (#934)
  Bump @ampproject/toolbox-optimizer from 2.0.1 to 2.1.0 (#931)
  Bump eslint-plugin-testing-library from 3.0.1 to 3.0.2 (#932)
  Fix Document panel crashing (#930)
  Fix deployment (#928)
  Update URL when publishing post. (#836)
  Fix multiple warnings and proptype issues (#929)
  Added scroll behavior to layer panel when reordering by mouse (#551)
  Fix forms events in Firefox (#875)
  Add save story error message (#888)
  lints
  fixed tests
  font size calculations fixed
  Use native aspect-ration format for grid layers
  Fixed behavior for selected elements (#924)
  Fix ID prefix in auto-advanve-after (#915)
  ...
obetomuniz added a commit that referenced this pull request Apr 1, 2020
* master: (56 commits)
  Add Snackbar for Invalid Links. (#912)
  Renamed files to make more sense, updated aria-label.
  Finished initial pass on Dashboard My Stories Page UI Grid View
  Update react-moveable and disable snap digits again (#941)
  Template Animation: Added move and repeater animation (#618) (#881)
  Fix storybook hierarchy (#939)
  Fix spinner / progress bar when saving (#937)
  Change placeholder text for pre-publish panel (#934)
  Bump @ampproject/toolbox-optimizer from 2.0.1 to 2.1.0 (#931)
  Bump eslint-plugin-testing-library from 3.0.1 to 3.0.2 (#932)
  Fix Document panel crashing (#930)
  Fix deployment (#928)
  Update URL when publishing post. (#836)
  Fix multiple warnings and proptype issues (#929)
  Added scroll behavior to layer panel when reordering by mouse (#551)
  Fix forms events in Firefox (#875)
  Add save story error message (#888)
  lints
  fixed tests
  font size calculations fixed
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants