These are chat archives for pixijs/pixi.js

10th
Jan 2018
mcpll
@mcpll
Jan 10 2018 07:24
Hi
if I have a pixi like background and I need to use the interactive function, I notice that if a have another layer over pixi, and then I set this layer with pointer events none into CSS property pixi seems not recognize the click
how can resolve this?
Ivan Popelyshev
@ivanpopelyshev
Jan 10 2018 10:00
it should work.
mcpll
@mcpll
Jan 10 2018 10:38

@ivanpopelyshev no
i have this structure

<div class="container"></div>

<pixi></pixi>
I setup the container with pointer-events:none
<

but not work
Ivan Popelyshev
@ivanpopelyshev
Jan 10 2018 10:40
make a fiddle
mcpll
@mcpll
Jan 10 2018 11:01
but i need to use an interaction manager?
Ivan Popelyshev
@ivanpopelyshev
Jan 10 2018 11:02
interaction manager works as a plugin to renderer atm
renderer.plugins.interaction
mcpll
@mcpll
Jan 10 2018 11:02
atm?
Ivan Popelyshev
@ivanpopelyshev
Jan 10 2018 11:02
you can look inside InteractionManager how it works and binds all events
at the momeny
*moment
it'll be changed soon
mcpll
@mcpll
Jan 10 2018 11:03
but pixi with overlay over don't recognize mouse event?
mcpll
@mcpll
Jan 10 2018 11:30
ok resolve is a z-index problem