jQuery - 可拖动克隆上的拖放视觉反馈
使用 droppable 提供反馈并不是一个好的选择,因为它们的嵌套结构很深(使用贪婪),所以我想通过更改可拖动(即克隆)来提供视觉反馈。
这可能吗?有人用 jQuery 做过这个吗?
我还没有看到任何例子,我不清楚如何实现它。我已经尝试过 over/out 事件,但这似乎不太正确,因为它们似乎在鼠标移动时被调用。
非常感谢任何建议,特别是草图示例。
Using droppable to provide feedback is not a good option due to their deeply nested structure (using greedy), so I would like to give visual feedback by changing the draggable (i.e., the clone).
Is this possible? Has anyone done this in jQuery?
I've not seen any examples and I'm unclear on how to achieve it. I've tried the over/out events, but that doesn't seem quite right as they seem get called on mouse move.
Any advice, particularly a sketched example, is much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我重新审视了结束/结束事件并且有效:
I revisited over/out events and that worked: