davidjerleke / embla-carousel

A lightweight carousel library with fluid motion and great swipe precision.
https://www.embla-carousel.com
MIT License
5.37k stars 164 forks source link

[Bug]: Embla Carousel's animation becomes less smooth when the battery saving mode is enabled. #811

Closed SzymonGonet closed 2 months ago

SzymonGonet commented 2 months ago

Which variants of Embla Carousel are you using?

Steps to reproduce

When you implement Embla Carousel and activate "battery saving mode," the smoothness of the animation tends to diminish.

Expected Behavior

The animation should be smooth.

Additional Context

No response

What browsers are you seeing the problem on?

All browsers

Version

v8.0.0

CodeSandbox

No response

Before submitting

davidjerleke commented 2 months ago

@SzymonGonet thanks for your bug report. This isn’t a bug but rather how requestAnimationFrame is designed. See: