-
-
Notifications
You must be signed in to change notification settings - Fork 40
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Checks
- Not a duplicate.
- Not a question, feature request, or anything other than a bug report directly related to Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions
Version
v0.5.3
Description
Methods of splide-extension-auto-scroll are not working. Below is sample code for reference.
NOTE:
@splidejs/splide = 4.1.4
@splidejs/splide-extension-auto-scroll = v0.5.3
import { Splide } from "@splidejs/splide";
import { AutoScroll } from "@splidejs/splide-extension-auto-scroll";
const carousel = new Splide(document.querySelector(".splide"), {
type: "loop",
gap: "20px",
drag: "free",
pagination: false,
arrows: false,
autoScroll: {
speed: -0.5,
pauseOnHover: false,
pauseOnFocus: false,
},
});
carousel.mount({ AutoScroll });
// !!! NOT WORKING !!!
/** Should ideally pause the carousel, but it is not?? */
carousel.Components.AutoScroll.pause();Reproduction Link
https://codesandbox.io/p/devbox/splide-autoscroll-issue-cgg4v4
Steps to Reproduce
N/A
Expected Behaviour
Should pause & play with respective methods.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working