Minor modification.
This commit is contained in:
parent
6e9eea126a
commit
6fd498d4a8
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user