properly animate the profile hover card (#3590)
* properly implement with `isOpen` and `isPositioned` * well, this works just as well * add `willChange`zio/stable
parent
480fa10e0b
commit
d5982891fa
|
@ -289,12 +289,12 @@ export function ProfileHoverCardInner(props: ProfileHoverCardProps) {
|
|||
{props.children}
|
||||
{isVisible && (
|
||||
<Portal>
|
||||
<div style={animationStyle}>
|
||||
<div
|
||||
ref={refs.setFloating}
|
||||
style={floatingStyles}
|
||||
onPointerEnter={onPointerEnterCard}
|
||||
onPointerLeave={onPointerLeaveCard}>
|
||||
<div style={{willChange: 'transform', ...animationStyle}}>
|
||||
<Card did={props.did} hide={onPress} />
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue