You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When freeMode is enabled every scroll(move) event re-adds the active, previous and next classes. This causes a performance penalty because it triggers unnecessary style recalculations on the active, previous and next slides.
Expected Behavior
The active, previous and next classes are only removed or added when necessary:
After.mp4
Actual Behavior
The active, previous and next classes are continuously re-added in every scroll(move) event:
Check that this is really a bug
Reproduction link
https://codesandbox.io/p/sandbox/swiper-default-forked-gx2lnh?file=%2Findex.html%3A63%2C48
Bug description
When freeMode is enabled every scroll(move) event re-adds the active, previous and next classes. This causes a performance penalty because it triggers unnecessary style recalculations on the active, previous and next slides.
Expected Behavior
The active, previous and next classes are only removed or added when necessary:
After.mp4
Actual Behavior
The active, previous and next classes are continuously re-added in every scroll(move) event:
Before.mp4
Swiper version
11.0.7
Platform/Target and Browser Versions
All platforms/targets
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: