Skip to content

Commit 3b3d191

Browse files
committed
Try next autorotate variant after 2 seconds.
1 parent 39ed991 commit 3b3d191

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

src/ui/game/MainGridTileDragController.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,13 @@ export class MainGridTileDragController extends TileDragController {
199199
context.source.startAutorotate(rotation, step);
200200
// if there is more than one rotation that fits,
201201
// rotate to the next option after a short delay
202-
step++;
203-
context.autorotateTimeout = window.setTimeout(
204-
fn,
205-
3000,
206-
);
202+
if (rotation.relativeRotationAngles.length > 1) {
203+
step++;
204+
context.autorotateTimeout = window.setTimeout(
205+
fn,
206+
2000,
207+
);
208+
}
207209
};
208210
context.autorotateTimeout = window.setTimeout(fn, 100);
209211
}

0 commit comments

Comments
 (0)