question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Align to bottom flickering

See original GitHub issue

Describe the bug The items in the list start to flicker when using alignToBottom option and browser zoom feature. When you use browser zoom feature it creates items with floating point height which likely triggers this issue. The item size keeps recalculating and changing which triggers different padding at the top which results in flickering effect.

Reproduction You can reproduce in “align-to-bottom” e2e example with the following patch: https://github.com/EddyTravels/react-virtuoso/commit/90ee4ea73c3b54779912c9058e9002cbefd93e99

To Reproduce Steps to reproduce the behavior:

  1. Open “align-to-bottom”
  2. Adjust browser zoom level down to 75%
  3. The flickering should start

Screenshots

https://user-images.githubusercontent.com/91422/128022776-7abc8767-a9fa-447e-9320-9a8af824bf0e.mov

(I recorded with item height at 30.8 but I was later able to reproduce with 30px height items as well at different zoom level)

Desktop (please complete the following information):

  • OS: Mac OS 11.5.1
  • Browser Chrome 92

Additional context

I believe this was also the issue in #317 and #268 but was closed due to lack of reproduction example.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
pranascommented, Aug 6, 2021

It seems the flickering is gone, great find! Thanks for a quick fix and keep up the good work with react-virtuoso.

0reactions
tsnevillecomcommented, Dec 5, 2022

How do you align these to the bottom?

Read more comments on GitHub >

github_iconTop Results From Across the Web

div-box flickering when flaw with css - html - Stack Overflow
I am trying to make hover image-zoom effect in basic HTML gallery with CSS-3 styles. The every 5th box is always flickering on...
Read more >
[Solved] Javascript scroll flickering problem - CodeProject
I want a div stick to the bottom when a specific div is completely visible in the viewport while scrolling...
Read more >
Troubleshoot screen flickering in Windows - Microsoft Support
If it's not, uninstall each app one by one until the issue is resolved. Select the Microsoft Store from the start menu.
Read more >
Flickering Video on Dell Gaming or Alienware Monitors
Follow the suggested troubleshooting steps below to resolve issues with flickering video on Dell Gaming or Alienware monitors.
Read more >
How to Stop Laptop Screen Flickering | HP® Tech Takes
Computer problems are a headache, and a flickering laptop screen can ... drivers when patches, updates, and bug fixes go by the wayside....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found