1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-09-01 04:22:28 +02:00

don't interact if we're already moving points

This commit is contained in:
Pomax
2020-08-11 18:25:25 -07:00
parent 4e1c844c1d
commit e7506dba6e
3 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ onKeyDown() {
}
onMouseMove() {
if (this.cursor.down) {
if (this.cursor.down && !this.currentPoint) {
this.steps = round( map(this.cursor.y, 0,this.height, 24, 1) );
}
redraw();

View File

@@ -38,7 +38,7 @@ onKeyDown() {
}
onMouseMove() {
if (this.cursor.down) {
if (this.cursor.down && !this.currentPoint) {
this.steps = round( map(this.cursor.y, 0,this.height, 16, 1) );
}
redraw();

View File

@@ -133,7 +133,7 @@ onMouseUp() {
onMouseMove() {
this.curve.update();
if (this.mark) {
if (this.mark && !this.currentPoint) {
let diff = this.mark - this.cursor.y,
mapped = map(diff, -this.height/2, this.height/2, 10, 90, true);
this.step = mapped | 0;