cytoscape.js How to remove the grey circle when panning

陌路散爱 提交于 2019-12-10 21:39:20

问题


i use cytoscape.js. to draw Node Graphs
if i pan the Graph with Mouse, there is a grey circle on my mouse position.
I have no Idea how to remove this.
Can you help me please?

Thank you :)


回答1:


Only Overwrite the Core style for remove grey circle:

.selector('core') // just core properties
.css({
  'active-bg-size': 0
})



回答2:


What you are describing is the active state on the background, indicated by the semitransparent circle around the cursor (or your finger on touch). For reasons of consistency across platforms and providing feedback to the user, this feature is not disableable. What we could do simply is allow the active area to be styled so you could effectively hide it. -M https://github.com/cytoscape/cytoscape.js/issues/337



来源:https://stackoverflow.com/questions/18561879/cytoscape-js-how-to-remove-the-grey-circle-when-panning

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