Skip to content

Commit

Permalink
fix(Toast): increase fpsLimit to 60 (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Apr 17, 2024
1 parent e21c8ca commit 8534711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/radix-vue/src/Toast/ToastRootImpl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const remainingTime = ref(duration.value)
const remainingRaf = useRafFn(() => {
const elapsedTime = new Date().getTime() - closeTimerStartTimeRef.value
remainingTime.value = Math.max(closeTimerRemainingTimeRef.value - elapsedTime, 0)
}, { fpsLimit: 30 })
}, { fpsLimit: 60 })
function startTimer(duration: number) {
if (!duration || duration === Number.POSITIVE_INFINITY)
Expand Down

0 comments on commit 8534711

Please sign in to comment.