Incorrect transform calculation when `setFixedDirection` set to `[0, 0]`
See original GitHub issueEnvironments
- Moveable Component version: 0.28.0
- Testable Address(optional):
Description
When I use setFixedDirection([0, 0])
mouse position is not calculated correctly or as it should.
I have recorded my screen and tried to show how to reproduce this issue and how I expect it to work: https://www.loom.com/share/2d92fa6230774874a64bf441dbb30bde
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
moveable/Scalable.ts at master - GitHub
setDefaultTransformIndex (e, "scale");. datas.isWidth = isWidth;. function setRatio(ratio: number) {. datas.ratio = ratio && isFinite(ratio) ? ratio : 0;. }.
Read more >Resizable - Documentation - Daybrush
If fixedDirection is set, the boundingWidth and boundingHeight values can be changed and can be reconfirmed as a return value. fixedDirection set by ......
Read more >Create Draggable/Resizable/Scalable/Rotatable/Warpable ...
moveable is a JavaScript library that makes an element draggable, resizable, scalable, rotatable and wrapable.
Read more >Incorrect route calculation - Support Forum
The first problem is based on the calculation of the route, when I move an agent ... nodes width 640 nodes depth 640,...
Read more >https://raw.githubusercontent.com/daybrush/moveabl...
[0.36.1](https://github.com/daybrush/moveable/compare/0.36.0...0.36.1) (2022-09-19) ### :sparkles: Packages * `@moveable/helper` 0.0.4 * `lit-moveable` ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s working quite nice 🙏🏻 Thank you, @daybrush
https://codesandbox.io/s/moveable-resize-fixed-direction-issue-0-33-0-success-wsh1d8
@seahindeniz
Test 0.29.8 version. It works, but there is another minor problem. I’ll check.