Fixed minor bug.
This commit is contained in:
parent
9b9988569f
commit
5d1408ad9a
5
dist/iwmlib.js
vendored
5
dist/iwmlib.js
vendored
@ -3218,8 +3218,9 @@
|
||||
if (delta != null) {
|
||||
this.addVelocity(delta);
|
||||
let alpha = delta.rotate;
|
||||
if (this.maxRotationPerStep != null) {
|
||||
if (Math.abs(alpha) > this.maxRotationPerStep) {
|
||||
if (this.maxRotation != null) {
|
||||
if (Math.abs(alpha) > this.maxRotation) {
|
||||
console.log("limited rotation");
|
||||
alpha = 0;
|
||||
}
|
||||
}
|
||||
|
5
dist/iwmlib.pixi.js
vendored
5
dist/iwmlib.pixi.js
vendored
@ -6385,8 +6385,9 @@
|
||||
if (delta != null) {
|
||||
this.addVelocity(delta);
|
||||
let alpha = delta.rotate;
|
||||
if (this.maxRotationPerStep != null) {
|
||||
if (Math.abs(alpha) > this.maxRotationPerStep) {
|
||||
if (this.maxRotation != null) {
|
||||
if (Math.abs(alpha) > this.maxRotation) {
|
||||
console.log("limited rotation");
|
||||
alpha = 0;
|
||||
}
|
||||
}
|
||||
|
@ -351,8 +351,9 @@ export class AbstractScatter extends Throwable {
|
||||
if (delta != null) {
|
||||
this.addVelocity(delta)
|
||||
let alpha = delta.rotate
|
||||
if (this.maxRotationPerStep != null) {
|
||||
if (Math.abs(alpha) > this.maxRotationPerStep) {
|
||||
if (this.maxRotation != null) {
|
||||
if (Math.abs(alpha) > this.maxRotation) {
|
||||
console.log("limited rotation")
|
||||
alpha = 0
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user