• Content Count

  • Joined

  • Last visited

  1. EduBic

    Listener mousemove event on Graphics element

    Regarding the WHY: According to this issue: link I think that 'mouseover' triggers because it is added on the Graphics object, that is not comparable to a Sprite object. I don't understand why it's called Graphics instead of GraphicsManager. I think the latter is a better descriptive name. Since my need is to write a Diagram Design Tool, hence a lot of primitive graphics elements and no sprites, I'm thinking that PIXI.js is not what I need.
  2. EduBic

    Listener mousemove event on Graphics element

    Thank you, but I don't understand how to use "elem.trackedPointers", there is no documentation about it. It's a pity that the only good guide of this nice library is the source code.
  3. Hello everyone! I'm trying Pixi.js for a week and still, I don't understand what's going on with the PIXI.Graphics() class. I want to drag my graphic circle but from the following code, I get that the 'mousemove' event is triggered when I move the mouse cursor on my canvas, not only on my graphic circle. elem = new PIXI.Graphics(); elem.beginFill(0xFFFFFF); elem.drawCircle(50, 50, 10); elem.endFill(); myStage.addChild(elem); elem.on('mousemove', (e) => { console.log(e); }); What am I missing? Since I am experimenting with the interaction between pixi canvas and user input, are there any guides to understanding better what's happening under the hood and how to correctly manage it?