You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ifvisible.idle(function() {
console.log('idle')
document.body.style.opacity = 0.5;
});
ifvisible.wakeup(function() {
console.log('wakeup')
document.body.style.opacity = 1;
});
// instead of setInterval, this will not call the callback if the user is idle
ifvisible.onEvery(5, function() {
console.log('interval');
});
the interval initially gets called correctly, if I switch tabs then get back to the page "wakeup" is fired however the interval doesn't resume
The text was updated successfully, but these errors were encountered:
khaledosman
changed the title
ifvisible.OnEvery doesn't continue called after switching tabs
ifvisible.OnEvery doesn't continue after switching tabs
Mar 29, 2017
version: 2.0.10
I have the current code
ifvisible.setIdleDuration(900);
the interval initially gets called correctly, if I switch tabs then get back to the page "wakeup" is fired however the interval doesn't resume
The text was updated successfully, but these errors were encountered: