Fixed minor bug.

This commit is contained in:
Uwe Oestermeier 2019-07-04 16:15:12 +02:00
parent 9b9988569f
commit 5d1408ad9a
3 changed files with 9 additions and 6 deletions

5
dist/iwmlib.js vendored
View File

@ -3218,8 +3218,9 @@
if (delta != null) { if (delta != null) {
this.addVelocity(delta); this.addVelocity(delta);
let alpha = delta.rotate; let alpha = delta.rotate;
if (this.maxRotationPerStep != null) { if (this.maxRotation != null) {
if (Math.abs(alpha) > this.maxRotationPerStep) { if (Math.abs(alpha) > this.maxRotation) {
console.log("limited rotation");
alpha = 0; alpha = 0;
} }
} }

5
dist/iwmlib.pixi.js vendored
View File

@ -6385,8 +6385,9 @@
if (delta != null) { if (delta != null) {
this.addVelocity(delta); this.addVelocity(delta);
let alpha = delta.rotate; let alpha = delta.rotate;
if (this.maxRotationPerStep != null) { if (this.maxRotation != null) {
if (Math.abs(alpha) > this.maxRotationPerStep) { if (Math.abs(alpha) > this.maxRotation) {
console.log("limited rotation");
alpha = 0; alpha = 0;
} }
} }

View File

@ -351,8 +351,9 @@ export class AbstractScatter extends Throwable {
if (delta != null) { if (delta != null) {
this.addVelocity(delta) this.addVelocity(delta)
let alpha = delta.rotate let alpha = delta.rotate
if (this.maxRotationPerStep != null) { if (this.maxRotation != null) {
if (Math.abs(alpha) > this.maxRotationPerStep) { if (Math.abs(alpha) > this.maxRotation) {
console.log("limited rotation")
alpha = 0 alpha = 0
} }
} }