jsPlumb issue using drag and resize

拥有回忆 提交于 2019-12-05 21:17:28

FYI, I had a similar issue. As it turns out (and was indicated by one of the comments under the question), you should not mix the global jsPlumb with instances. Rather, you should use an instance of jsPlumb (in the example above, it was named elem) wherever you can.

This is based on the developer's (sporritt) comments here: https://github.com/sporritt/jsPlumb/issues/387#issuecomment-185099198

They are considering removing the global jsPlumb in 2.1.0 to remove confusion in cases like this where you mix two different instances and it doesn't work properly.

For the newer versions of JsPlumb the bug persists. In this case, just use the filter option in the drag options.

instance.draggable((element), {
   filter: ".ui-resizable-handle"
});

https://github.com/jsplumb/katavorio/wiki#filtering

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