Catch poll zero

This commit is contained in:
Richard Davey 2019-05-28 17:08:30 +01:00
parent 21b3f2a1ab
commit 520e2e621f

View file

@ -547,7 +547,13 @@ var InputPlugin = new Class({
return false;
}
if (this.pollRate > 0)
var rate = this.pollRate;
if (rate === -1)
{
return false;
}
else if (rate > 0)
{
this._pollTimer -= delta;
@ -562,10 +568,6 @@ var InputPlugin = new Class({
return false;
}
}
else
{
return false;
}
// We got this far? Then we should poll for movement
var manager = this.manager;