Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3980

Allow touchend event to bubble up, without autoPreventDefault = false

$
0
0

Hi there, a quick question for which i cannot find a working answer.

Let says i am in a PIXI Class that represent a button. I have this line : 

 this.touchend = this._onEnd;

And the _onEnd function body is as follow : 

this._changeState(0);
this._released = true;
if (this.onClick === null) {
    this.onClick(e);
}

What i want to be able to do is allow the touchend event to propagate back to window, but without using the following line :

plugins.interaction.autoPreventDefault = false;

Is it possible to have a particular event propagate while other are still prevented?

 

Thanks in advance for any light you can shed on this problem.

-Jim

 


Viewing all articles
Browse latest Browse all 3980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>