davidjerleke / embla-carousel

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

[Bug]: "Smoothness" of Slide Transitions feels degraded between 8.1.5 and 8.1.6 #928

Closed taylorfsteele closed 1 month ago

taylorfsteele commented 2 months ago

Which variants of Embla Carousel are you using?

Steps to reproduce

  1. Go to any example found via the docs in codesandbox. E.g., Vanilla + TypeScript: https://codesandbox.io/s/xkygsv
  2. Fork the sandbox, and pin embla-carousel in package.json to 8.1.5. Restart to recompile the sandbox: https://codesandbox.io/s/embla-carousel-default-vanilla-forked-vqr66k?file=/package.json
  3. Compare the slide transitions between the two. 8.1.5 is noticeably "smoother" (at least to my eye).

Expected Behavior

The performance and "feel" of the slide transitions should be that of 8.1.5.

Additional Context

I could be completely off-base here, but I can definitely notice a difference between the two versions. Maybe I have super eyes or it's a 1st world problem with high refresh monitors πŸ˜†

What browsers are you seeing the problem on?

Chrome

Version

8.1.6

CodeSandbox

https://codesandbox.io/s/xkygsv

Before submitting

davidjerleke commented 2 months ago

@taylorfsteele thanks for noticing.

Your observation is correct! This will be fixed in 8.1.7 and I’m hoping to make it even a bit smoother than 8.1.5. So please use 8.1.5 and stay tuned because there are no new actual features in 8.1.6 anyway.

taylorfsteele commented 2 months ago

Appreciate the fast reply! Glad to know it wasn't just me, I thought I might have been going crazy.

Let me know if I can provide any assistance, I just pulled the repo down to attempt a fix: My first instinct was that somehow removing this lag offset callback accidentally broke something somewhere, but that didn't work for me.

Regardless, if I can provide some form of help or contribution, I'm happy to do so πŸ™‚

davidjerleke commented 1 month ago

Regardless, if I can provide some form of help or contribution, I'm happy to do so πŸ™‚

@taylorfsteele thanks for being helpful πŸ‘! Would you mind testing the following sandbox and see if the smoothness is back?

taylorfsteele commented 1 month ago

Regardless, if I can provide some form of help or contribution, I'm happy to do so πŸ™‚

@taylorfsteele thanks for being helpful πŸ‘! Would you mind testing the following sandbox and see if the smoothness is back?

This looks really good to me! πŸ™Œ

davidjerleke commented 1 month ago

@taylorfsteele thanks a lot fot testing the sandbox πŸ™‚. I'll let you know when I've released the bug fix with v8.1.7.

davidjerleke commented 1 month ago

@taylorfsteele, @rakyi, a bug fix for this has been included in the v8.1.7 release.

rakyi commented 1 month ago

Thanks a lot, David! Embla is great.