Closed sagrawal31 closed 2 years ago
@sagrawal31
moveable
0.28.0react-moveable
0.31.1preact-moveable
0.30.0ngx-moveable
0.24.0svelte-moveable
0.18.0lit-moveable
0.5.0vue-moveable
2.0.0-beta.6vue3-moveable
0.3.0moveable's new version is released. Check it again.
Environments
Description
Yesterday, I upgraded the version from 0.27.1 to 0.27.3 (thanks for the library). But I started to see various issues after the upgrade. I'll list down two of them.
Problem 1
I'm placing a custom handle to the bottom of moveable target like this-
This I'm achieving by getting the position of the moveable by calling
moveable.getRect()
(just afternew Moveable(...)
-Earlier, this was working fine but now I'm getting all the 0 values in
getRect()
method. For now, I've added a workaround by wrapping it tosetTimeout
and it works (not sure why but may be because of asynchronous stuff being discussed here https://github.com/daybrush/moveable/issues/568).Problem 2
Using a custom-Able, I'm showing the width & height of the element (as you can see in the above image)-
When I'm switching between targets, that element is being shown for a fraction of sections with 0x0 value. Please see the video (look at the top left corner of the mobile frame).
https://user-images.githubusercontent.com/1804514/149632536-19ae3481-4845-4cf5-a33c-df60d4bcf1f0.mov
I tried to read the changes in the recent releases https://github.com/daybrush/moveable/compare/0.27.1...master but couldn't get much. My one cent is that this is related to some asynchronous operation changes.