UX: reset idle on tab focus (#27139)

When users come back to a tab we should consider they are not idle anymore.
This commit is contained in:
Joffrey JAFFEUX 2024-05-22 22:13:08 +02:00 committed by GitHub
parent d75339af76
commit 4553bb1717
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,6 +112,8 @@ function setupNotifications(appEvents) {
});
window.addEventListener("focus", function () {
resetIdle();
if (!primaryTab) {
primaryTab = true;
keyValueStore.setItem(focusTrackerKey, mbClientId);