ccforward / progressive-image

A progressive-image module for Vanilla JavaScript and Vue 1.0+ & 2.0+
https://ccforward.github.io/progressive-image/index.html
MIT License
379 stars 43 forks source link

Add `touchmove` to events list #16

Closed avrahamappel closed 4 years ago

avrahamappel commented 4 years ago

Currently, images will not load on mobile devices as the user scrolls. This is because when scrolling with a touch screen, touch events are fired instead of scroll events.

In order to fix this, I added the "touchmove" event to the EVENTS list for both vanilla and Vue. This enables this package to load images when a touch scroll has taken place.

ccforward commented 4 years ago

+1

avrahamappel commented 4 years ago

Thanks @ccforward. Can you publish a new version to NPM?