Browse Source

Added the leading option too

gre-patch-1
Juan Cortes Ross 6 years ago
parent
commit
9c3269c6dd
No known key found for this signature in database GPG Key ID: 34A99C03E9455EB8
  1. 2
      src/components/Idler.js

2
src/components/Idler.js

@ -40,7 +40,7 @@ class Idler extends PureComponent<Props> {
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

Loading…
Cancel
Save