Fixes relations rendering timing bug
This commit is contained in:
parent
d63acb7ab8
commit
ebd47b6476
|
@ -25,7 +25,9 @@ export default class RelationsLayer extends EventEmitter {
|
||||||
this.drawingTool.on('cancelDrawing', () => this.emit('cancelDrawing'));
|
this.drawingTool.on('cancelDrawing', () => this.emit('cancelDrawing'));
|
||||||
|
|
||||||
// Redraw on window resize
|
// Redraw on window resize
|
||||||
window.addEventListener('resize', this.recomputeAll);
|
window.addEventListener('resize', () => requestAnimationFrame(() => {
|
||||||
|
this.recomputeAll();
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Shorthand **/
|
/** Shorthand **/
|
||||||
|
|
Loading…
Reference in New Issue