Setup formatting
This commit is contained in:
parent
d34f25295c
commit
dd850d11d1
45 changed files with 230 additions and 190 deletions
|
|
@ -36,8 +36,8 @@ export class TouchListener extends CommandGenerator {
|
|||
|
||||
this.sendCommandToSubcribers(
|
||||
new MoveActionCommand(
|
||||
vec2.subtract(vec2.create(), position, this.previousPosition)
|
||||
)
|
||||
vec2.subtract(vec2.create(), position, this.previousPosition),
|
||||
),
|
||||
);
|
||||
|
||||
this.previousPosition = position;
|
||||
|
|
@ -49,7 +49,7 @@ export class TouchListener extends CommandGenerator {
|
|||
event.touches,
|
||||
(center: vec2, touch: Touch) =>
|
||||
vec2.add(center, center, vec2.fromValues(-touch.clientX, touch.clientY)),
|
||||
vec2.create()
|
||||
vec2.create(),
|
||||
);
|
||||
|
||||
return vec2.scale(center, center, 1 / event.touches.length);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue