mirror of
https://github.com/photonstorm/phaser
synced 2024-11-17 10:18:42 +00:00
Removed test code
This commit is contained in:
parent
51a9b3bd4a
commit
390f34c8d9
1 changed files with 0 additions and 21 deletions
|
@ -244,21 +244,6 @@ var MouseManager = new Class({
|
|||
{
|
||||
var _this = this;
|
||||
|
||||
/*
|
||||
var storeDelta = function (event)
|
||||
{
|
||||
var x1 = _this.position.x;
|
||||
var y1 = _this.position.y;
|
||||
|
||||
var x2 = _this.prevPosition.x;
|
||||
var y2 = _this.prevPosition.y;
|
||||
|
||||
event._deltaX = x1 - x2;
|
||||
event._deltaY = y1 - y2;
|
||||
event._angle = Math.atan2(y2 - y1, x2 - x1);
|
||||
};
|
||||
*/
|
||||
|
||||
this.onMouseMove = function (event)
|
||||
{
|
||||
if (event.defaultPrevented || !_this.enabled || !_this.manager)
|
||||
|
@ -267,8 +252,6 @@ var MouseManager = new Class({
|
|||
return;
|
||||
}
|
||||
|
||||
// storeDelta(event);
|
||||
|
||||
_this.manager.queueMouseMove(event);
|
||||
|
||||
if (_this.capture)
|
||||
|
@ -285,8 +268,6 @@ var MouseManager = new Class({
|
|||
return;
|
||||
}
|
||||
|
||||
// storeDelta(event);
|
||||
|
||||
_this.manager.queueMouseDown(event);
|
||||
|
||||
if (_this.capture)
|
||||
|
@ -303,8 +284,6 @@ var MouseManager = new Class({
|
|||
return;
|
||||
}
|
||||
|
||||
// storeDelta(event);
|
||||
|
||||
_this.manager.queueMouseUp(event);
|
||||
|
||||
if (_this.capture)
|
||||
|
|
Loading…
Reference in a new issue