我试图在节点的右键单击事件上显示qtip。我已经在鼠标切换或点击事件时这样做了,它们都起作用了。但是,我不能让它在右击下工作。
position: {
my: 'top left',
at: 'bottom right',
adjust: { method: 'none' }
},
style: {
classes: 'qtip-rounded'
},
show: {
event: 'mouseover'
}有什么猜测吗?我还检查了这个:http://qtip2.com/guides#events.rightclick,它对我不起作用。
发布于 2015-10-08 12:18:22
您不能像qtip文档所建议的那样使用DOM事件,因为图形元素不是HTMLElements。你应该使用赛多角事件。
cxttap:http://js.cytoscape.org/#events/user-input-device-events
https://stackoverflow.com/questions/33013783
复制相似问题