You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pre-compute tray position at click time to remove display latency
The 250ms delay before showing the tray popup was needed because the
position was computed in the LaunchedEffect, after the click had
already propagated through coroutine dispatchers.
Instead, compute the position directly in internalPrimaryAction at
click time, when the native status item geometry is guaranteed to be
available. The LaunchedEffect then uses this pre-computed position
immediately without any delay.
The polling fallback with delay is kept only for cases where no click
occurred (initiallyVisible or programmatic show).
0 commit comments