Removed test code

This commit is contained in:
Richard Davey 2018-11-24 12:46:49 +00:00
parent 51a9b3bd4a
commit 390f34c8d9

View file

@ -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)