德莱文

Results 4 comments of 德莱文

我举个例子 eg1 : https://hcg1023.github.io/vue3-dnd/example/dustbin/single-target.html eg2 : https://hcg1023.github.io/vue3-dnd/example/drag-around/custom-drag-layer.html 这个eg1中的元素拖动结束如果放置在dropable区域外部,会有一个动画回到之前的位置 如果拖动结束时在dropable区域内部,会立刻结束 eg2的preview元素是自定义的,当拖动到外面时,会僵直接近一秒 我想控制这个僵直状态

> ![F1B4A13B-4C78-4E33-95FE-17503AF12FF7-13569-000028948360328D](https://user-images.githubusercontent.com/47942469/179690440-b7d3ce33-d980-4462-b849-26aea7322a41.gif) [ ![F1B4A13B-4C78-4E33-95FE-17503AF12FF7-13569-000028948360328D](https://user-images.githubusercontent.com/47942469/179690440-b7d3ce33-d980-4462-b849-26aea7322a41.gif) ](https://user-images.githubusercontent.com/47942469/179690440-b7d3ce33-d980-4462-b849-26aea7322a41.gif) [ ](https://user-images.githubusercontent.com/47942469/179690440-b7d3ce33-d980-4462-b849-26aea7322a41.gif) 你指的是这个效果吗?我可能没太理解你的问题 是的

是这个问题 如果可以立刻结束拖拽状态,或者可以获取到回弹动画的状态自己覆盖到preview元素上,都会比eg2中的效果好

in this case ,the hightlighted area size has't changed due to target component size change has't been observered https://github.com/elrumordelaluz/reactour/blob/d703ca1b2aebf33c4f616d9ac6d1e3c8e653772b/packages/tour/hooks.tsx#L66 you can resolve by this way: create a dom to extend...