From 9ecf2c31bdc36c8357114df7c4017874f2304d38 Mon Sep 17 00:00:00 2001 From: Juan Cortes Ross Date: Mon, 24 Dec 2018 00:10:39 +0100 Subject: [PATCH] Adds a maxTime for the debounce on the auto-lock idler --- src/components/Idler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Idler.js b/src/components/Idler.js index 12444110..8132eb28 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) + debounceOnChange = debounce(_ => this.idleTimeHandler(), 1000, { maxWait: 1000 }) checkForAutoLock = _ => { const timeout = this.props.autoLockTimeout