JQuery UI 可拖动鼠标向上无法识别
我有一个相当奇怪的问题。我已经实现了draggable,当我在div或段落等上使用它时它可以正常工作。
但是我有以下情况,我有一个5行1列的表格。在第一个单元格内,我有一个 div。现在我想从那里拖动该 div,并将其放置在最后一行。但如果它被放置在其他地方,它应该会恢复。
我面临的问题是 - 当我开始拖动时,即使释放鼠标按钮,div 也会卡在鼠标指针下方。有时,它工作正常,然后恢复……而有时,它只是卡在指针下方,并随着我的移动而移动。这是 jQuery 的错误吗?
I have a rather peculiar problem. I have implemented draggable, and it works properly when I use it on a div or paragraph, etc.
But I have the following situation, I have a table with 5 rows and one column. Inside the first cell, I have a div. Now I want to drag that div from there, and place it in the last row. But if it is placed anywhere else, it should revert.
The problem that I am facing is - when I begin dragging, the div gets stuck under the mouse pointer even after the mouse button is released. Some times, it works properly, and reverts... and other times, it is just stuck under the pointer and moves around as I move it. Is this a jQuery bug?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决办法:删除引起冲突的插件。
Solution: Remove the plugin which is causing the conflict.