Skip to content

Commit

Permalink
chore: refactor labels.js
Browse files Browse the repository at this point in the history
  • Loading branch information
timurbazhirov committed Aug 23, 2023
1 parent 47d0f89 commit 403bed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mixins/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const LabelsMixin = (superclass) =>
* @method adjustLabelsToCameraPosition
*/
adjustLabelsToCameraPosition() {
if (!this.areLabelsShown) return;
if (!this.areLabelsShown || !this.settings.labelsConfig.areSpritesUsed) return;
this.labelsGroup.children.forEach((label) => {
const { atomPosition, atomName: element } = label.userData;
const offsetVector = this.getLabelOffsetVector(atomPosition, element);
Expand Down

0 comments on commit 403bed9

Please sign in to comment.