1 parent 39ed991 commit 3b3d191Copy full SHA for 3b3d191
1 file changed
src/ui/game/MainGridTileDragController.ts
@@ -199,11 +199,13 @@ export class MainGridTileDragController extends TileDragController {
199
context.source.startAutorotate(rotation, step);
200
// if there is more than one rotation that fits,
201
// rotate to the next option after a short delay
202
- step++;
203
- context.autorotateTimeout = window.setTimeout(
204
- fn,
205
- 3000,
206
- );
+ if (rotation.relativeRotationAngles.length > 1) {
+ step++;
+ context.autorotateTimeout = window.setTimeout(
+ fn,
+ 2000,
207
+ );
208
+ }
209
};
210
context.autorotateTimeout = window.setTimeout(fn, 100);
211
}
0 commit comments