We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab33747 commit b27a142Copy full SHA for b27a142
src/scripts/roadkits/RoadKit.js
@@ -406,13 +406,13 @@ export default class RoadKit {
406
// Do nothing if no tile is selected
407
if (!this.selectedTile) return;
408
409
- // Rotate anti-clockwise when pressing a
+ // Rotate when pressing a
410
if (e.key === "a" || e.key === "A") {
411
- this._rotateTile(e, this.selectedTile, Math.PI / 2);
+ this._rotateTile(e, this.selectedTile, -Math.PI / 2);
412
}
413
- // Rotate clockwise when pressing d
+ // Rotate when pressing d
414
if (e.key === "d" || e.key === "D") {
415
- this._rotateTile(e, this.selectedTile, -Math.PI / 2);
+ this._rotateTile(e, this.selectedTile, Math.PI / 2);
416
417
// Delete the selected tile when pressing Delete
418
if (e.key === "Delete") {
0 commit comments