mcastiello/pixi-reactive

PixiHTMLContainer has his own PointerContext-Coordinates

Sylraka opened this issue · 3 comments

Actions:

  • Add a PointerContext to the canvas
  • Add a PixiHTMLContainer to the canvas

Expected behaviour
The PointerContext holds the coordinates of the cursor inside the canvas (see image).
Screenshot 2022-01-30 at 16 11 52
It should hold this coordinates over all elements inside the canvas.

Found behaviour
The PointerContext coordinates set a new coordinate system if hover over a PixiHTMLContainer (see image).
Screenshot 2022-01-30 at 16 12 10

My best guess on this one is that by hovering over a different HTML element, the event intercepted by the context is not the one dispatched by the canvas. Actually I think that the fact that they use the same context may be the cause of the issue.
I need to investigate this one

New version is 1.3.24

Now it works! Thank you.