Skip to content

Commit

Permalink
Bug fix for #720.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjerleke committed Feb 1, 2024
1 parent fcda9ed commit 7468665
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/embla-carousel/src/components/Animations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export function Animations(
}

function animate(timeStamp: DOMHighResTimeStamp): void {
if (!animationFrame) return
if (!lastTimeStamp) lastTimeStamp = timeStamp

const elapsed = timeStamp - lastTimeStamp
Expand Down

0 comments on commit 7468665

Please sign in to comment.