rcbyr / keen-slider

The HTML touch slider carousel with the most native feeling you will get.
https://keen-slider.io/
MIT License
4.67k stars 214 forks source link

Dots cause a layout shift #284

Open roshansachan opened 1 year ago

roshansachan commented 1 year ago

While doing performance analysis of a page I observed that the dots section is highlighted in the google chrome "Rendering -> Layout shift Regions". Also attaching the video from the performance tab timeline for reference.

https://user-images.githubusercontent.com/4952904/198026901-e9647495-4009-4a3e-a9e8-9964e43b98a0.mov

rcbyr commented 1 year ago

Hey @roshansachan

this is something that is not caused especially by the slider, but by your implementation. If you can provide your code in a code sandbox, I can help you fix this problem.