Skip to content

Commit b9fb1dd

Browse files
committed
Added call to updateMotion
1 parent 64d2b26 commit b9fb1dd

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/input/InputManager.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,11 @@ var InputManager = new Class({
450450

451451
if (!this.enabled || len === 0)
452452
{
453+
for (i = 0; i < this.pointersTotal; i++)
454+
{
455+
pointers[i].updateMotion();
456+
}
457+
453458
return;
454459
}
455460

@@ -506,6 +511,11 @@ var InputManager = new Class({
506511
break;
507512
}
508513
}
514+
515+
for (i = 0; i < this.pointersTotal; i++)
516+
{
517+
pointers[i].updateMotion();
518+
}
509519
},
510520

511521
/**
@@ -1320,6 +1330,10 @@ var InputManager = new Class({
13201330
*/
13211331
transformPointer: function (pointer, pageX, pageY, wasMove)
13221332
{
1333+
pointer.x = (pageX - this.bounds.left) * this.scale.x;
1334+
pointer.y = (pageY - this.bounds.top) * this.scale.y;
1335+
1336+
/*
13231337
var p0 = pointer.position;
13241338
var p1 = pointer.prevPosition;
13251339
@@ -1345,6 +1359,7 @@ var InputManager = new Class({
13451359
p0.x = x * a + p1.x * (1 - a);
13461360
p0.y = y * a + p1.y * (1 - a);
13471361
}
1362+
*/
13481363
},
13491364

13501365
/**

0 commit comments

Comments
 (0)