Skip to content

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

@TFOH

Description

@TFOH

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions