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:
@@ -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();
|
||||
|
@@ -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();
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user