Skip to content

Commit f9c30c6

Browse files
committed
Adjust interval
1 parent efe5e20 commit f9c30c6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Core/Sources/SuggestionWidget/WidgetWindowsController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ actor WidgetWindowsController: NSObject {
8181

8282
func updateWindowOpacity(immediately: Bool) {
8383
let shouldDebounce = !immediately &&
84-
!(Date().timeIntervalSince(lastUpdateWindowOpacityTime) > 5)
84+
!(Date().timeIntervalSince(lastUpdateWindowOpacityTime) > 3)
8585
lastUpdateWindowOpacityTime = Date()
8686
updateWindowOpacityTask?.cancel()
8787

@@ -194,7 +194,7 @@ actor WidgetWindowsController: NSObject {
194194

195195
let now = Date()
196196
let shouldThrottle = !immediately &&
197-
!(now.timeIntervalSince(lastUpdateWindowLocationTime) > 5)
197+
!(now.timeIntervalSince(lastUpdateWindowLocationTime) > 3)
198198

199199
updateWindowLocationTask?.cancel()
200200
let interval: TimeInterval = 0.1

0 commit comments

Comments
 (0)