|
@@ -54,7 +54,7 @@ export default class RotationEvent {
|
|
|
|
|
|
// 累计超过6度
|
|
// 累计超过6度
|
|
let angle = Math.round(this.offset / canvasWidth * 2 * Math.PI / (Math.PI/30)) * (Math.PI/30)
|
|
let angle = Math.round(this.offset / canvasWidth * 2 * Math.PI / (Math.PI/30)) * (Math.PI/30)
|
|
- if(angle < Math.PI/30) return
|
|
|
|
|
|
+ if(Math.abs(angle) < Math.PI/30) return
|
|
|
|
|
|
// 开始旋转
|
|
// 开始旋转
|
|
this._room.actionsHandler.rotate({
|
|
this._room.actionsHandler.rotate({
|