jQuery Draggable 双击重置位置
我对这个 jsfiddle 示例有点困惑。当用户拖动方块时,一切正常。但是,当用户将其拖离原始位置后双击该正方形时,我希望它返回到仅一半工作(垂直)的原始位置。它不会向右走! 非常感谢任何帮助:)
I am a bit stuck with this jsfiddle example. When the user drags the square that's all working fine. But when the user double clicks the square after dragging it away from the original position i want it to return to the original position which is only half working (vertically). It is not going to the right!
Any help much appreciated :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以这样做(我纠正了你的小提琴,因为它完全错误):
在这里小提琴 http://jsfiddle.net/6kXTP /5/
you could do (i corrected your fiddle because it was totally wrong):
fiddle here http://jsfiddle.net/6kXTP/5/