fix mobile rotation
This commit is contained in:
parent
a1fd239d8f
commit
ea6fc08056
2 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ let zoomies = 4;
|
||||||
let turnies = 0.2;
|
let turnies = 0.2;
|
||||||
|
|
||||||
let shork = {x: 4, y: 8};
|
let shork = {x: 4, y: 8};
|
||||||
let rotation = Math.PI/2;
|
let rotation = 0;
|
||||||
let shork_init = transform(shork, -rotation);
|
let shork_init = transform(shork, -rotation);
|
||||||
shork_image.style.transform = `matrix(${shork_init.a}, ${shork_init.b}, ${shork_init.c}, ${shork_init.d}, ${shork_init.x}, ${shork_init.y})`;
|
shork_image.style.transform = `matrix(${shork_init.a}, ${shork_init.b}, ${shork_init.c}, ${shork_init.d}, ${shork_init.x}, ${shork_init.y})`;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ let zoomies = 4;
|
||||||
let turnies = 0.2;
|
let turnies = 0.2;
|
||||||
|
|
||||||
let shork = {x: 4, y: 8};
|
let shork = {x: 4, y: 8};
|
||||||
let rotation = Math.PI/2;
|
let rotation = 0;
|
||||||
let shork_init = transform(shork, -rotation);
|
let shork_init = transform(shork, -rotation);
|
||||||
shork_image.style.transform = `matrix(${shork_init.a}, ${shork_init.b}, ${shork_init.c}, ${shork_init.d}, ${shork_init.x}, ${shork_init.y})`;
|
shork_image.style.transform = `matrix(${shork_init.a}, ${shork_init.b}, ${shork_init.c}, ${shork_init.d}, ${shork_init.x}, ${shork_init.y})`;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue