diff --git a/src/components/Idler.js b/src/components/Idler.js index 8132eb28..6aa1f559 100644 --- a/src/components/Idler.js +++ b/src/components/Idler.js @@ -40,7 +40,7 @@ class Idler extends PureComponent { lastAction: number = -1 - debounceOnChange = debounce(_ => this.idleTimeHandler(), 1000, { maxWait: 1000 }) + debounceOnChange = debounce(_ => this.idleTimeHandler(), 1000, { maxWait: 1000, leading: true }) checkForAutoLock = _ => { const timeout = this.props.autoLockTimeout