Pixi.js Touchmove and Mousemove event target have different targets. one seems to point to the DisplayObject and the other to the sprite within. Is there a way to stop propagation?
Thanks!
PixiInteractionData contains originalEvent where you can prevent immediate propagation. Your function will receive event as argument
function (event) {
event.originalEvent.stopPropagation();
}
Also you can check it out in the docs. http://www.goodboydigital.com/pixijs/docs/classes/InteractionData.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.