jQuery UI 恢复事件
我正在寻找一种方法,一旦元素离开某个可放置元素,即可将其恢复到其原始大小和位置。
本质上,我所选择的图像可以拖到可放置区域并调整大小,但我希望能够通过将图像移出可放置区域来将图像“放回”原始位置。
谢谢!
I'm looking for a way to revert an element to its original size and position as soon as it leaves a certain droppable.
Essentially, what I have is selection of images that you can drag into a droppable area and resize, but I want to be able "put back" the images in their original locations by moving them off the droppable area.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您进行以下操作,这是可能的:
坏消息是,在第二次移动之后,块被移动到其他地方而不是原来的位置。我只是被问及此页面上可能的解决方案。
多个块移动时拖动还原出现问题
that's possible if you make the following:
The bad news is that after the second movement, the block is moved somewhere else not to it original possition. I'm just asked about possible solutions on this page.
Trouble with dragged revert at multiple block movement