Ngl: disabling zooming picked atom

Created on 19 Mar 2018  路  4Comments  路  Source: nglviewer/ngl

I'm using 2.0.0-dev.28 and when I click an atom, it zooms the atom and animate the zooming. How can I turn this off?

Most helpful comment

if the NGL object is available in the scope of your call to this function, you can use stage.mouseControls.remove('clickPick-left', NGL.MouseActions.movePick)

All 4 comments

You can use stage.mouseControls.remove('clickPick-left')

Worked! Thanks, @ppillot

removing 'clickPick-left' also removes click signals. Is it possible to only remove the centering of the picked atom?

if the NGL object is available in the scope of your call to this function, you can use stage.mouseControls.remove('clickPick-left', NGL.MouseActions.movePick)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pconesa picture pconesa  路  5Comments

harryjubb picture harryjubb  路  7Comments

LivC182 picture LivC182  路  6Comments

biharck picture biharck  路  6Comments

thomashopf picture thomashopf  路  6Comments