Skip to content

Commit

Permalink
Update delay between events when clicking menu bar items
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbaird committed Aug 11, 2024
1 parent 7900f7c commit bc47362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ice/MenuBar/MenuBarItemManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ extension MenuBarItemManager {

do {
try await postEventAndWaitToReceive(mouseDownEvent, to: .sessionEventTap)
try? await Task.sleep(for: .milliseconds(15))
try? await Task.sleep(for: .milliseconds(50))
try await postEventAndWaitToReceive(mouseUpEvent, to: .sessionEventTap)
} catch {
// call with `try?`, as we don't want to circumvent the existing error
Expand Down

0 comments on commit bc47362

Please sign in to comment.