[pull] main from motiondivision:main#187
Merged
Conversation
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.20 to 5.4.21. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v5.4.21/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.4.21/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-version: 5.4.21 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
When using useDragControls with snapToCursor: true on a component with initial coordinates, the component would snap to the wrong position on the first drag. This was because the layout measurement includes the current transform value, but the snap calculation didn't account for it. The fix adds the current motion value to the snap calculation to ensure the element snaps to the correct cursor position regardless of its initial coordinates. Fixes #1607
CSS Motion Path properties (offsetDistance, offsetPath, offsetRotate, offsetAnchor) should remain as CSS styles and not be converted to SVG attributes. This fixes the issue where animating offsetDistance on SVG elements would incorrectly render as an HTML attribute rather than a CSS style property. Fixes #1450
fix: use JSX from the React namespace
…vite-5.4.21 Bump vite from 5.4.20 to 5.4.21
…ls-VumSW Fix snapToCursor not working with initial coordinates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )