diff --git a/examples/example 8 - Dragging/index.html b/examples/example 8 - Dragging/index.html index fffb17b..bc2c6ab 100644 --- a/examples/example 8 - Dragging/index.html +++ b/examples/example 8 - Dragging/index.html @@ -61,6 +61,9 @@ // use the mousedown and touchstart bunny.mousedown = bunny.touchstart = function(data) { + // stop the default event... + data.originalEvent.preventDefault(); + // store a refference to the data // The reason for this is because of multitouch // we want to track the movement of this particular touch diff --git a/examples/example 8 - Dragging/index.html b/examples/example 8 - Dragging/index.html index fffb17b..bc2c6ab 100644 --- a/examples/example 8 - Dragging/index.html +++ b/examples/example 8 - Dragging/index.html @@ -61,6 +61,9 @@ // use the mousedown and touchstart bunny.mousedown = bunny.touchstart = function(data) { + // stop the default event... + data.originalEvent.preventDefault(); + // store a refference to the data // The reason for this is because of multitouch // we want to track the movement of this particular touch diff --git a/src/pixi/InteractionManager.js b/src/pixi/InteractionManager.js index 1b57de7..bd80333 100644 --- a/src/pixi/InteractionManager.js +++ b/src/pixi/InteractionManager.js @@ -39,14 +39,7 @@ this.touchs = {}; - /** - * sets whether or not the touchStart and mouseDown interactions stop the high level browser functions like zoom and pan. - * It is true by default, Meaning the native zoom/pan functions will be disabled on mobiles - * @property preventDefault - * @type Boolean - */ - this.preventDefault = true; - + // helpers this.tempPoint = new PIXI.Point(); //this.tempMatrix = mat3.create(); @@ -268,8 +261,6 @@ */ PIXI.InteractionManager.prototype.onMouseDown = function(event) { - if(this.preventDefault)event.preventDefault(); - this.mouse.originalEvent = event || window.event; //IE uses window.event // loop through inteaction tree... @@ -491,8 +482,6 @@ */ PIXI.InteractionManager.prototype.onTouchStart = function(event) { - if(this.preventDefault)event.preventDefault(); - var rect = this.target.view.getBoundingClientRect(); var changedTouches = event.changedTouches;