Interaction Prevent Default fix

This commit is contained in:
Mat Groves 2013-06-19 21:16:00 +01:00
parent 4dab30ee17
commit 6d166cbf7a

View file

@ -217,6 +217,8 @@ PIXI.InteractionManager.prototype.onMouseMove = function(event)
PIXI.InteractionManager.prototype.onMouseDown = function(event)
{
event.preventDefault();
// loop through inteaction tree...
// hit test each item! ->
// get interactive items under point??
@ -253,6 +255,8 @@ PIXI.InteractionManager.prototype.onMouseDown = function(event)
PIXI.InteractionManager.prototype.onMouseUp = function(event)
{
var global = this.mouse.global;
@ -407,6 +411,8 @@ PIXI.InteractionManager.prototype.onTouchMove = function(event)
PIXI.InteractionManager.prototype.onTouchStart = function(event)
{
event.preventDefault();
var rect = this.target.view.getBoundingClientRect();
var changedTouches = event.changedTouches;