Minor modification.

This commit is contained in:
kovacsv 2021-12-13 08:41:48 +01:00
parent 6e9eea126a
commit 6fd498d4a8

View File

@ -228,10 +228,10 @@ OV.ClickDetector = class
const maxClickDistance = 3.0;
const currentDistance = OV.CoordDistance2D (this.startPosition, currentPosition);
if (currentDistance > maxClickDistance) {
this.isClick = false;
this.Cancel ();
}
} else {
this.isClick = false;
this.Cancel ();
}
}