Added limit to scatter rotation to avoid flicker.
This commit is contained in:
+1
-2
@@ -269,7 +269,7 @@ export class AbstractScatter extends Throwable {
|
||||
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')
|
||||
@@ -348,7 +348,6 @@ export class AbstractScatter extends Throwable {
|
||||
|
||||
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