Image preview flashes while scrolling on an iPhone
oldrich-s opened this issue · comments
How to reproduce:
- Use iPhone with latest iOS
- Open https://pqina.nl/filepond/
- Scroll to "Multiple File Upload"
- Click on "Browse"
- Select a picture
- Wait until it loads
- Swipe up and down
- Observe how the image flashes
It's because the browser window is resized (vertically). It hides the images when this happens so it's faster to update the views.
How can window be resized vertically when scrolling?
On iOs it is because it shows and hides the bottom menu bar which impacts the window height.
I'm looking into this now, but requesting innerHeight
on each resize is performance intensive. Also, I want to stay away from fixed values. So I'm testing if the width is changing, should be fixed later today.
ok, perfect 👍
Fixed in version 4.1.4