Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
itaak committed Aug 2, 2024
1 parent 399c158 commit 6891e91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/atoms/Smile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
const betaRange = 180;
const gammaRange = 50;
const restBeta = 15;
let restBeta = 0;
const restGamma = 0;
let x = baseX;
Expand All @@ -23,6 +23,7 @@
$: {
const beta = $deviceOrientation.beta ?? 0;
const gamma = $deviceOrientation.gamma ?? 0;
let restBeta = beta / 2;
const normalizedBeta = (beta - restBeta) / (betaRange / 2);
const normalizedGamma = (gamma - restGamma) / gammaRange;
Expand Down

0 comments on commit 6891e91

Please sign in to comment.