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
(This is similar to previously reported performance issue #7355, but for another slide class this time.)
When watchSlidesProgress is enabled every scroll(move) event re-adds the slideVisibleClass and slideFullyVisibleClass classes. This causes a performance penalty because it triggers unnecessary style recalculations on the (semi-)visible slides.
Expected Behavior
The slideVisibleClass and slideFullyVisibleClass classes are only removed or added when necessary:
After.mp4
Actual Behavior
The slideVisibleClass and slideFullyVisibleClass 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-477vky
Bug description
(This is similar to previously reported performance issue #7355, but for another slide class this time.)
When watchSlidesProgress is enabled every scroll(move) event re-adds the slideVisibleClass and slideFullyVisibleClass classes. This causes a performance penalty because it triggers unnecessary style recalculations on the (semi-)visible slides.
Expected Behavior
The slideVisibleClass and slideFullyVisibleClass classes are only removed or added when necessary:
After.mp4
Actual Behavior
The slideVisibleClass and slideFullyVisibleClass classes are continuously re-added in every scroll(move) event:
Before.mp4
Swiper version
11.1.1
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: