nolimits4web / swiper

Most modern mobile touch slider with hardware accelerated transitions
https://swiperjs.com
MIT License
39.52k stars 9.75k forks source link

scroll-margin breaks CSS mode animation in Safari 15.0 on swiper7 #4986

Open Oliweer opened 2 years ago

Oliweer commented 2 years ago

Check that this is really a bug

Reproduction link

https://codesandbox.io/s/swiper-css-mode-forked-l2wxq?file=/index.html

Bug description

When using scroll-margin (previously scroll-snap-margin) to control how the items snap inside the overflow it flickers on Safari 15.0 when pressing the prev/next buttons. This previously worked even worse in Safari 14.x but now its just the animation that it has issues with.

Expected Behavior

Smooth animation like in chrome.

Actual Behavior

Small flickering when it animation stops because the animation gets offset with whatever the scroll-margin is.

Swiper version

7.0.6

Platform/Target and Browser Versions

macOS Safari 15.0

Validations

Would you like to open a PR for this bug?

nolimits4web commented 2 years ago

Right now it is not supported as there is no alternative for it not in CSS mode