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

Slider is jittery on Mac's Safari and iOS #1253

Open
2 tasks done
bhaveshxrawat opened this issue Nov 26, 2023 · 0 comments
Open
2 tasks done

Slider is jittery on Mac's Safari and iOS #1253

bhaveshxrawat opened this issue Nov 26, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@bhaveshxrawat
Copy link

Checks

Version

v4.1.4

Description

Problem

I'm using Drag Free Snap feature in my website which is built using Astro and noticed that the slider are jittery on just Mac Safari and all browsers on iOS (makes sense, all browser are just re-skinned Safari browser).

After further inspection, I noticed that using will-change property fixes that and makes the slider smooth. Before that, I compared my site's slider with official website's one and it looked fine.

Screen.Recording.2023-11-26.at.4.49.58.PM.mp4

Reproduction Link

No response

Steps to Reproduce

I'm using drag free snap config

Splide.defaults = {
        autoWidth: true,
        autoHeight: true,
        drag: "free",
        snap: true,
        pagination: false,
        arrows: true,
        gap: "1rem",
        breakpoints: {
            769: {
                gap: "0.75rem",
                arrows: false,
            },
        },
    };

Expected Behaviour

The sliders are jittery which are resolved by adding will-change.

@bhaveshxrawat bhaveshxrawat added the bug Something isn't working label Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant