我试图在节点的右键事件上显示qtip。我已经在鼠标悬停或点击事件上做过了,它们工作了。然而,我不能使它的工作右键。
position: {
my: 'top left',
at: 'bottom right',
adjust: { method: 'none' }
},
style: {
classes: 'qtip-rounded'
},
show: {
event: 'mouseover'
}
猜测吗?我也检查了这个:http://qtip2.com/guides#events.rightclick
你不能像qtip文档建议的那样使用DOM事件,因为图形元素不是htmlelement。应该使用Cytoscape事件。
cxttap
: http://js.cytoscape.org/#events/user-input-device-events