Prevent recipient popover from flashing at top-left corner

Fixkamo-internal
Порезанный
20 марта 2026 г. в 17:14 UTC
Автор
kamo
Обещать
acbac13

The popover initialized at position {0,0} and repositioned in a useEffect (after paint), causing a visible fly-in from the top-left. Fixed by using useLayoutEffect (runs before paint) and starting the popover off-screen with visibility:hidden until positioned. A subtle opacity fade replaces the slide animation.

Все изменения

Как вы видите судоходство?

Каждое из этих обновлений автоматически попадает в ваше рабочее пространство. Начните бесплатно и смотрите, как он растет неделю за неделей.

Начните бесплатно навсегдаПосмотреть цены