1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-27 08:39:00 +02:00

build fix for news

This commit is contained in:
Pomax
2020-09-22 20:32:38 -07:00
parent e7844eae19
commit cc151da718
27 changed files with 427 additions and 300 deletions

View File

@@ -107,11 +107,15 @@ class GraphicsAPI extends BaseAPI {
for (let i = 0, e = this.movable.length, p; i < e; i++) {
p = this.movable[i];
if (new Vector(p).dist(this.cursor) <= 5) {
this.setCursor(this.HAND);
if (this.canvas.style.cursor !== `none`) {
this.setCursor(this.HAND);
}
return; // NOTE: this is a return, not a break!
}
}
this.setCursor(this.POINTER);
if (this.canvas.style.cursor !== `none`) {
this.setCursor(this.POINTER);
}
}
}