Tweaked mouse up interaction to work inline with expectations
commented out unused {}
This commit is contained in:
parent
141083e8d2
commit
cef2ceb286
3 changed files with 95 additions and 95 deletions
|
@ -2964,7 +2964,7 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
// if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// {
|
||||
// ok so there are some functions so lets hit test it..
|
||||
item.__hit = this.hitTest(item, this.mouse);
|
||||
this.mouse.target = item;
|
||||
|
@ -2998,7 +2998,7 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
item.__isOver = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
// --->
|
||||
}
|
||||
};
|
||||
|
@ -3112,8 +3112,8 @@ PIXI.InteractionManager.prototype.onMouseUp = function(event)
|
|||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
||||
if(item.mouseup || item.mouseupoutside || item.click)
|
||||
{
|
||||
//if(item.mouseup || item.mouseupoutside || item.click)
|
||||
//{
|
||||
item.__hit = this.hitTest(item, this.mouse);
|
||||
|
||||
if(item.__hit && !up)
|
||||
|
@ -3139,7 +3139,7 @@ PIXI.InteractionManager.prototype.onMouseUp = function(event)
|
|||
}
|
||||
|
||||
item.__isDown = false;
|
||||
}
|
||||
//}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -235,7 +235,7 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
// if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// {
|
||||
// ok so there are some functions so lets hit test it..
|
||||
item.__hit = this.hitTest(item, this.mouse);
|
||||
this.mouse.target = item;
|
||||
|
@ -269,7 +269,7 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
item.__isOver = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
// --->
|
||||
}
|
||||
};
|
||||
|
@ -383,8 +383,8 @@ PIXI.InteractionManager.prototype.onMouseUp = function(event)
|
|||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
||||
if(item.mouseup || item.mouseupoutside || item.click)
|
||||
{
|
||||
//if(item.mouseup || item.mouseupoutside || item.click)
|
||||
//{
|
||||
item.__hit = this.hitTest(item, this.mouse);
|
||||
|
||||
if(item.__hit && !up)
|
||||
|
@ -410,7 +410,7 @@ PIXI.InteractionManager.prototype.onMouseUp = function(event)
|
|||
}
|
||||
|
||||
item.__isDown = false;
|
||||
}
|
||||
//}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue