Skip to content

Commit

Permalink
See pixijs#2662 --- Added _touchCount to interactiveTarget.js, and re…
Browse files Browse the repository at this point in the history
…moved an extraneous line in InteractionManager.js
  • Loading branch information
starakaj committed Oct 25, 2016
1 parent 400515c commit 216c52d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/interaction/InteractionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,6 @@ export default class InteractionManager extends EventEmitter
{
if (hit)
{
displayObject._touchDown = true;
if (typeof displayObject._touchCount === 'undefined')
{
displayObject._touchCount = 0;
Expand Down
6 changes: 3 additions & 3 deletions src/interaction/interactiveTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@ export default {
_pointerDown: false,

/**
* Internal check to detect if a user has touched the displayObject
* Internal check to detect the number of active touches on the displayObject
*
* @inner {boolean}
* @inner {number}
* @private
*/
_touchDown: false,
_touchCount: 0,
};

0 comments on commit 216c52d

Please sign in to comment.