dropping an element only into the droppable that is in front

僤鯓⒐⒋嵵緔 提交于 2019-12-02 14:54:48

问题


I have some droppable areas, which are also draggable. It can happen that two or more droppable areas will get behind each other. Is there a way to drop a draggable item only into the area that is in the front? (z-index)

The situation is now, that the item gets added to all the areas, that are overlapping.

Thank you


回答1:


Ok I have now a quite good solution and I want to share it with you guys... I have build a small plugin

https://github.com/vaceta/jquery-top-droppable



来源:https://stackoverflow.com/questions/16497873/dropping-an-element-only-into-the-droppable-that-is-in-front

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!