Open girayk opened 2 weeks ago
The reason why we don't use the Pixi canvas is so that we can change the resolution during rendering. Otherwise the canvas would be rescaled. But I agree that we should propagate the events
👍🏻
I'll leave it open until the changes were merged
When we call Composition.attachPlayer its creating new canvas 2D element and its not binding some pixi events such as onmouseleave Maybe its better instead of creating new Canvas element, returning renderer.view.canvas then we can bind reactivities.
public attachPlayer(element: HTMLElement) { element.appendChild(this.renderer.view.canvas); }