Browse Source

set labels non-pickable

Alexander Rose 6 years ago
parent
commit
f08121119e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/mol-plugin/util/structure-labels.ts

+ 1 - 0
src/mol-plugin/util/structure-labels.ts

@@ -38,6 +38,7 @@ export async function getLabelRepresentation(ctx: RuntimeContext, structure: Str
     const repr = prev || ShapeRepresentation(getLabelsShape, Text.Utils);
     const data = getLabelData(structure, params);
     await repr.createOrUpdate(params.options, data).runInContext(ctx);
+    repr.setState({ pickable: false })
     return repr;
 }