Browse Source

Listen to frame:updated in CanvasSpots

canvas-spot
Artur Arseniev 3 years ago
parent
commit
70295bee33
  1. 2
      src/canvas/model/CanvasSpots.ts

2
src/canvas/model/CanvasSpots.ts

@ -14,7 +14,7 @@ export default class CanvasSpots extends ModuleCollection<CanvasSpot> {
this.on('remove', this.onRemove);
const { em } = this;
this.refreshDbn = debounce(() => this.refresh(), 0);
const evToRefreshDbn = 'component:resize styleable:change component:input component:update undo redo';
const evToRefreshDbn = 'component:resize styleable:change component:input component:update frame:updated undo redo';
this.listenTo(em, evToRefreshDbn, () => this.refreshDbn());
}

Loading…
Cancel
Save