Skip to content

Commit

Permalink
Merge pull request #1 from IcedDog/main
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
lchzh3473 authored Oct 16, 2024
2 parents 20a437e + 140ce28 commit e57682c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ async function main() {
for (const i of chart.cameraMove.scaleKeyPoints) {
if (nowRealTime > i.endRealTime) continue;
if (i.startRealTime === i.endRealTime) {
chart.cameraMove.currentScale = i.endScale;
chart.cameraMove.currentScale = i.endValue;
break;
}
const delta = tween[i.easeType]((nowRealTime - i.startRealTime) / (i.endRealTime - i.startRealTime));
Expand All @@ -624,7 +624,7 @@ async function main() {
for (const i of chart.cameraMove.xPositionKeyPoints) {
if (nowRealTime > i.endRealTime) continue;
if (i.startRealTime === i.endRealTime) {
chart.cameraMove.currentX = i.endScale;
chart.cameraMove.currentX = i.endValue;
break;
}
const delta = tween[i.easeType]((nowRealTime - i.startRealTime) / (i.endRealTime - i.startRealTime));
Expand Down

0 comments on commit e57682c

Please sign in to comment.