Ngl: Disabling the default tooltip?

Created on 23 Nov 2017  路  3Comments  路  Source: nglviewer/ngl

Great visualization engine! I implemented my own tooltip whose content lives in a React component's state and I am looking for a way to disable the default tooltip that is triggered when an atom is hovered. Is there an easy way to do that?

Thank you!

question

Most helpful comment

Hi, you can enable / disable the flag when creating the stage:

stage = new NGL.Stage( "viewport", { tooltip:false } );

All 3 comments

Hi, you can enable / disable the flag when creating the stage:

stage = new NGL.Stage( "viewport", { tooltip:false } );

@arose I think it's better to have application to turn it on rather make ON as default. In current nglview version, the tooltip is on in non-full screen mode and off in full screen (nglview does not change anything).

It is a bug that it is off when in fullscreen but I am not sure why it is in nglview. It works in the example webapp.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

harryjubb picture harryjubb  路  7Comments

sunhwan picture sunhwan  路  4Comments

josemduarte picture josemduarte  路  4Comments

arose picture arose  路  3Comments

thomashopf picture thomashopf  路  6Comments