pqina / filepond-plugin-image-preview

🖼 Show a preview for images dropped on FilePond

Home Page:https://pqina.nl/filepond

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image preview flashes while scrolling on an iPhone

oldrich-s opened this issue · comments

How to reproduce:

  1. Use iPhone with latest iOS
  2. Open https://pqina.nl/filepond/
  3. Scroll to "Multiple File Upload"
  4. Click on "Browse"
  5. Select a picture
  6. Wait until it loads
  7. Swipe up and down
  8. Observe how the image flashes
commented

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?

commented

On iOs it is because it shows and hides the bottom menu bar which impacts the window height.

I see, would it not make sense to exclude it from re-rendering? Something like:

image

commented

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 👍

commented

Fixed in version 4.1.4