diff --git a/packages/entity/traits/graphical.js b/packages/entity/traits/graphical.js index 9918693..3fd2fed 100644 --- a/packages/entity/traits/graphical.js +++ b/packages/entity/traits/graphical.js @@ -27,8 +27,7 @@ class GraphicalBase extends Trait { listeners() { const listeners = {}; - const trackPosition = this.params.get('trackPosition'); - if (trackPosition && hasGraphics) { + if (hasGraphics && this.params.get('trackPosition')) { listeners.traitAdded = (trait) => { if ('positioned' === trait.constructor.type()) { this.entity.container.position = this.entity.position;