Skip to content

Commit 22176e9

Browse files
author
Andrew Start
committed
Moved touchstart callback after touch data is set.
1 parent e44fb78 commit 22176e9

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

bin/pixi.dev.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
22
* @license
3-
* pixi.js - v2.1.7
3+
* pixi.js - v2.1.8
44
* Copyright (c) 2012-2014, Mat Groves
55
* http://goodboydigital.com/
66
*
7-
* Compiled: 2015-03-10
7+
* Compiled: 2015-03-17
88
*
99
* pixi.js is licensed under the MIT License.
1010
* http://www.opensource.org/licenses/mit-license.php
@@ -5405,10 +5405,11 @@ PIXI.InteractionManager.prototype.onTouchStart = function(event)
54055405
if (item.__hit)
54065406
{
54075407
//call the function!
5408-
if (item.touchstart)item.touchstart(touchData);
54095408
item.__isDown = true;
54105409
item.__touchData = item.__touchData || {};
54115410
item.__touchData[touchEvent.identifier] = touchData;
5411+
5412+
if (item.touchstart)item.touchstart(touchData);
54125413

54135414
if (!item.interactiveChildren) break;
54145415
}

0 commit comments

Comments
 (0)