Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InteractionManager: Uncaught ReferenceError #72

Closed
dooprod opened this issue Apr 16, 2013 · 2 comments
Closed

InteractionManager: Uncaught ReferenceError #72

dooprod opened this issue Apr 16, 2013 · 2 comments

Comments

@dooprod
Copy link

dooprod commented Apr 16, 2013

Hi there!
There is a little bug in the InteractionManager:

PIXI.InteractionManager.prototype.onTouchEnd = function(event)

If you use a touchEvent like "touchStart" or "touchEnd", the console return:

Uncaught ReferenceError: itemTouchData is not defined 

Can we just update with:

PIXI.InteractionManager.prototype.onTouchEnd = function(event) {
  event.preventDefault();
  var rect = this.target.view.getBoundingClientRect();
  var changedTouches = event.changedTouches;

  for (var i=0; i < changedTouches.length; i++) {
    var itemTouchData; // <-- Here?!
    var touchEvent = changedTouches[i];
(...)

Thanks!

@GoodBoyDigital
Copy link
Member

Good catch! Should be sorted now 👍

@lock
Copy link

lock bot commented Feb 27, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant