Added limit to scatter rotation to avoid flicker.
This commit is contained in:
Vendored
+1
-2
@@ -3136,7 +3136,7 @@
|
||||
scaleAutoClose = false,
|
||||
scaleCloseThreshold = 0.10,
|
||||
scaleCloseBuffer = 0.05,
|
||||
maxRotation = 5
|
||||
maxRotation = Angle.degree2radian(5)
|
||||
} = {}) {
|
||||
if (rotationDegrees != null && rotation != null) {
|
||||
throw new Error('Use rotationDegrees or rotation but not both')
|
||||
@@ -3215,7 +3215,6 @@
|
||||
|
||||
gesture(interaction) {
|
||||
let delta = interaction.delta();
|
||||
console.log("gesture", delta.rotate);
|
||||
if (delta != null) {
|
||||
this.addVelocity(delta);
|
||||
let alpha = delta.rotate;
|
||||
|
||||
Vendored
+1
-2
@@ -6303,7 +6303,7 @@
|
||||
scaleAutoClose = false,
|
||||
scaleCloseThreshold = 0.10,
|
||||
scaleCloseBuffer = 0.05,
|
||||
maxRotation = 5
|
||||
maxRotation = Angle.degree2radian(5)
|
||||
} = {}) {
|
||||
if (rotationDegrees != null && rotation != null) {
|
||||
throw new Error('Use rotationDegrees or rotation but not both')
|
||||
@@ -6382,7 +6382,6 @@
|
||||
|
||||
gesture(interaction) {
|
||||
let delta = interaction.delta();
|
||||
console.log("gesture", delta.rotate);
|
||||
if (delta != null) {
|
||||
this.addVelocity(delta);
|
||||
let alpha = delta.rotate;
|
||||
|
||||
Reference in New Issue
Block a user