とに2つのプラグインをアタッチする必要がparent elementありits childrenます。
親がアタッチされJQuery UI selectable plugin、その子がjquerycontextmenuと呼ばれるプラグインにアタッチされます。
でjquery contextMenu plguin、mousedown eventwith$.stopPropagation()関数が適用されます。
contextMenuコードの一部:
(this).mousedown( function(e) {
var evt = e;
evt.stopPropagation();
$(this).mouseup( function(e) {
e.stopPropagation();
// more code below...
});
しかし同時に、は要素の選択を行うためにJQuery UI selectableを使用しているようです。そのため、はこれ以上選択を行うことができませんでした。mousedown eventcontextMenuselectable plugin
今、私はしなければならなかったしremove the code $.stopPropagation() of contextMenu、selectable plugin再び仕事をしなければならなかった、そして私はこの方法が壊れなかったことを願っているcontextMenu plugin。
そして最後に、これを行うのは危険なので、コードを変更せずにそれらを一緒に動作させるにはどうすればよいですか?
どうもありがとうございます!!