I have an issue where I have a button on my canvas
which works great when I use a regular mouse, but when I use my Wacom creative pen tablet the button seems to not work.
mainLayer.on("mousedown", () => start());
I have an issue where I have a button on my canvas
which works great when I use a regular mouse, but when I use my Wacom creative pen tablet the button seems to not work.
mainLayer.on("mousedown", () => start());
Copyright © 2021 Jogjafile Inc.
You can use the Chrome dev tools to set event breakpoints and see what actually gets triggered.
To set breakpoints with chrome dev-tools:
But my guess is that you use
mousedown
instead ofpointerdown
.So, this should fix it:
You can read more about the Interaction events Pixi supports here: PIXI docs