Jump to content

Allow touchend event to bubble up, without autoPreventDefault = false


JimZeeKing
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...