Jump to content

Error on Mouse Drag


neurofuzzy
 Share

Recommended Posts

I recently upgraded from PIXI 1.5.4 to 2.2 and I am getting this error when I drag the mouse on the canvas:

 

Uncaught TypeError: Cannot read property 'length' of undefined  PIXI.InteractionManager.collectInteractiveSprite	  PIXI.InteractionManager.collectInteractiveSprite	  PIXI.InteractionManager.rebuildInteractiveGraph	  PIXI.InteractionManager.onMouseMove	

It appears to be PIXI.InteractionManager.prototype.collectInteractiveSprite hitting a child node with no children array.

            if (child.children.length > 0)            {                this.collectInteractiveSprite(child, iParent);            }

Any clues as to what is going on? This problem also occurs in PIXI 1.6.0

 

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...