Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing from autoplay: false to eg. autoplay: 4000 in breakpoints doesn't work when reducing viewport width #705

Open
TFOH opened this issue Dec 4, 2024 · 1 comment

Comments

@TFOH
Copy link

TFOH commented Dec 4, 2024

When reducing viewport width and crossing a breakpoint value boundary, an autoplay value defined in a breakpoint will not update from autoplay false, to a number value eg. autoplay: 4000;

I tested this with a very high number for autoplay ie 100000 instead of false to see what happens.

In that scenario when decreasing the browser width and crossing into a breakpoint that's using autoplay: 4000 the new autoplay value is not used / updated until the autoplay value from the higher breakpoint is "complete". So in this scenario you'd have to wait 100000 after crossing the boundary before the new value of 4000 starts being used.

I can deduce from this the new breakpoint's autoplay value needs updating on the leading edge immediately when crossing from a higher breakpoint to a lower one, rather than on the trailing edge.

I will add a reduced test case on codepen for this later.

@TFOH
Copy link
Author

TFOH commented Dec 5, 2024

Here's a reduced test case: https://codepen.io/tfoh/pen/MWMNNyZ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant