Skip to content

Commit

Permalink
Fix touch rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Jan 2, 2024
1 parent 1ec6ccb commit 952fdec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/src/controls/PointerTracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ export class PointerTracker {
const id0 = this.pointerOrder[ 0 ];
const id1 = this.pointerOrder[ 1 ];

const p0 = this.pointerPositions[ id0 ];
const p1 = this.pointerPositions[ id1 ];
const p0 = pointerPositions[ id0 ];
const p1 = pointerPositions[ id1 ];

target.addVectors( p0, p1 ).multiplyScalar( 0.5 );
return target;
Expand Down

0 comments on commit 952fdec

Please sign in to comment.