From 2dad97beb52ac577bd5ee92cee243ac2f16d4e86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt?= Date: Wed, 17 Jul 2024 20:13:28 +0200 Subject: [PATCH] Fix interaction count after bfcache restore (#505) --- src/lib/interactions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/interactions.ts b/src/lib/interactions.ts index 836a8c16..fbd07511 100644 --- a/src/lib/interactions.ts +++ b/src/lib/interactions.ts @@ -51,7 +51,7 @@ const getInteractionCountForNavigation = () => { }; export const resetInteractions = () => { - prevInteractionCount = 0; + prevInteractionCount = getInteractionCount(); longestInteractionList.length = 0; longestInteractionMap.clear(); };