@frontegg/ionic-capacitor 1.0.0-alpha.1 → 1.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -26,7 +26,7 @@ import io.reactivex.rxjava3.disposables.Disposable;
|
|
|
26
26
|
@CapacitorPlugin(name = "FronteggNative")
|
|
27
27
|
public class FronteggNativePlugin extends Plugin {
|
|
28
28
|
private Disposable disposable = null;
|
|
29
|
-
private Debouncer debouncer = new Debouncer(
|
|
29
|
+
private Debouncer debouncer = new Debouncer(50); // 200ms delay
|
|
30
30
|
|
|
31
31
|
@Override
|
|
32
32
|
public void load() {
|
|
@@ -13,7 +13,7 @@ public class FronteggNativePlugin: CAPPlugin {
|
|
|
13
13
|
var cancellables = Set<AnyCancellable>()
|
|
14
14
|
|
|
15
15
|
private var workItem: DispatchWorkItem?
|
|
16
|
-
private let delay: TimeInterval = 0.
|
|
16
|
+
private let delay: TimeInterval = 0.05 // 200ms delay
|
|
17
17
|
|
|
18
18
|
func debounce(_ action: @escaping () -> Void) {
|
|
19
19
|
workItem?.cancel()
|