Giedrius

Members
  • Content Count

    7
  • Joined

  • Last visited

  1. the problem was caused by this line: interaction.autoPreventDefault = false;
  2. chrome, explorer, edge, firefox supports pointer events which handles mouse events and touch events. But safari and firefox for android doesn't support these events, so we need to fallback to mouse events and touch events. I problem I still face is that if I pinch zoom the pixi canvas on browser which supports pointer events - everything works fine, but if I do pinch zooming on safari on iOS or firefox for android - they should use touch events, but the whole page is being zoomed not the canvas element as expected.
  3. chrome, explorer, edge, firefox supports pointer events which handles mouse events and touch events. But safari and firefox for android doesn't support these events, so we need to fallback to mouse events and touch events then. I problem I still face is that if I pinch zoom the pixi canvas on browser which supports pointer events - everything works fine, but if I do pinch zooming on safari on iOS or firefox for android - they should use touch events, but the whole page is being zoomed not the canvas element as expected.
  4. Giedrius

    Touch Zoom

    @Dan335 try using: e.data.originalEvent.targetTouches
  5. Giedrius

    Clone the PIXI Container

    I am creating a venue designer where user can create sectors of seats, customize them and duplicate to place on the other side of the venue. It would be convenient and time saving feature. So the sector is a container which holds row containers with seat objects inside. As I understand, one way would be to make a manual copy, creating an new Container and assigning properties of the original Container.
  6. Giedrius

    Clone the PIXI Container

    Oh, I see, the assignment operator doesn't create a copy of an object, it only assigns a reference to it. So I need to make a deep copy with Object.create, but it still removes the original container:
  7. Giedrius

    Clone the PIXI Container

    Hi all, I am trying to clone an PIXI Container so that it will have no relationship with the original one, except that they both should share the same prototypes - DisplayObject, EventEmitter, Object. But somehow I loose the original Container, see demo: