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

IOS browser position: fixed causes elements in the swiper to blink #7337

Closed
5 of 6 tasks
rick-liruixin opened this issue Feb 26, 2024 · 1 comment
Closed
5 of 6 tasks
Labels

Comments

@rick-liruixin
Copy link

rick-liruixin commented Feb 26, 2024

Check that this is really a bug

  • I confirm

Reproduction link

https://github.com/rick-liruixin/body-scroll-lock-upgrade/tree/swiper/examples/react

Bug description

IOS browser position: fixed causes elements in the swiper to blink
When I use swiper, I use the css property position: fixed. My swiper is used in the page flow, but my page has a popup/dialog, when the popup/dialog pops up, I will disable page scrolling. I use position: fixed attribute, but I found position: fixed will cause swiper elements flashing, after investigation, there is no problem in the elements outside swiper, this situation occurs at the bottom of the page, after entering the page to scroll down a part of the distance to have such a situation, just enter the page can see the large elements will not have blinking problems. React components are not re-rendered.

Recurring website: https://www.alexandermcqueen.cn/categories/women/bags.html?page=2

Recurrence condition:

  1. Open the link in any browser of IOS mobile /IPAD device, such as Safari and google.
    2, need to scroll down beyond the screen height distance.
    3, click "filter" will appear pop-up window, when opened and closed because of the use of position: fixed will cause swiper flash

The sample code warehouse: https://github.com/rick-liruixin/body-scroll-lock-upgrade/tree/swiper/examples/react

swiper.mp4

Expected Behavior

When swiper is used, the css property position: fixed, swiper does not blink

Actual Behavior

No response

Swiper version

11.0.6

Platform/Target and Browser Versions

iOS safari 17.1.1

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@nolimits4web
Copy link
Owner

It is issue with Safari, not with Swiper

Repository owner locked and limited conversation to collaborators Feb 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants