-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Avoid paint when hovering / scrolling (Popovers) #45545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -488,8 +488,10 @@ const UnforwardedPopover = ( | |
| ? undefined | ||
| : { | ||
| position: strategy, | ||
| left: Number.isNaN( x ) ? 0 : x ?? undefined, | ||
| top: Number.isNaN( y ) ? 0 : y ?? undefined, | ||
| top: 0, | ||
| left: 0, | ||
| x: x || undefined, | ||
|
||
| y: y || undefined, | ||
| } | ||
| } | ||
| > | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an interesting suggestion! Changing the animation of the insertion point deserves its own PR IMHO. We'll need design feedback on it as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't change the way the animation plays, changing from animating left, right to animating the scale has the same exact effect