Skip to content

Commit 7f31cfb

Browse files
committed
fixed type in the cached previous point in mouse uniform (filter)
1 parent a5d0acd commit 7f31cfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/Filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Phaser.Filter.prototype = {
131131
var x = pointer.x / this.game.width;
132132
var y = 1 - pointer.y / this.game.height;
133133

134-
if (x !== this.prevPoint.x || y !== this.prevPoint)
134+
if (x !== this.prevPoint.x || y !== this.prevPoint.y)
135135
{
136136
this.uniforms.mouse.value.x = x.toFixed(2);
137137
this.uniforms.mouse.value.y = y.toFixed(2);

0 commit comments

Comments
 (0)