sticky: true repaints frequently
See original GitHub issueBug description
setting sticky: true and trigger: click on an element, it seems to repaint the document rather frequently, so much so that the dom can’t be edited from dev console.
(This is happening in chrome, but might be happening in other browsers too.)
Reproduction
-
click the button
-
inspect the tippy element
-
notice that various dom elements in the dev console are flickering and un-editable:

Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (12 by maintainers)
Top Results From Across the Web
Why is My Paint Sticky or Tacky and How to Fix It - TheDIYPlan
One of the most common reasons for sticky paint that won't dry is paint that has been applied too thick, in too many...
Read more >Tips for Dealing With Sticky Painted Shelves - The Spruce
Shelves often remain sticky long after they have been painted; you can prevent or correct this problem in a variety of ways.
Read more >CSS Position Sticky Tutorial With Examples[Complete Guide]
Create a new CSS position sticky and get your CSS position fixed with this tutorial that also discusses cross browser compatibility for CSS ......
Read more >position - CSS: Cascading Style Sheets - MDN Web Docs
To see the effect of sticky positioning, select the position: sticky ... As a user scrolls, the browser must repaint the sticky or...
Read more >6 Effortless Ways to Make Spray Paint Not Sticky - Repaint Now
The paint you applied may also remain tacky days after application due to “blocking” which keeps paint from drying faster. This is commonly...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@mreinstein that seems like a good idea, I’ll look into it
I get that the static update each frame is very clean. I think the issue though is that updating essentially does 2 things under the hood each frame:
For most of those frames, nothing will have changed. I’m wondering if we could use
Element.getBoundingClientRect()each frame to detect if the element has changed. That would still trigger layout re-flow, but at least we’re not thrashing the dom with unnecessary re-draws.https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect