zoom.js icon indicating copy to clipboard operation
zoom.js copied to clipboard

Need srcset support

Open joshuapekera opened this issue 10 years ago • 8 comments
trafficstars

When using images with srcset in browsers that have native support (Chrome & Firefox) the plugin breaks. The plugin depends on a src to be specified. Polyfills, like picturefill or lazysizes/respimage, create a src image in Safari 8 because full native support for srcset isn't implemented yet. However, that will change with the release of Safari 9, which I confirmed by testing with Webkit Nightly. I'll look into a fix my self, but any thoughts on how to extend this to use srcset if src is not specified would be very helpful.

joshuapekera avatar Jul 03 '15 15:07 joshuapekera

+1

nelga avatar Jul 24 '15 06:07 nelga

+1

Schweinepriester avatar Oct 26 '15 14:10 Schweinepriester

+1

andre3wap avatar Nov 20 '15 16:11 andre3wap

+1

nextgenthemes avatar Dec 08 '15 07:12 nextgenthemes

+1

PS: A <picture> extension would be very helpful too

heavybeard avatar Dec 12 '15 17:12 heavybeard

I add a new pull request with .currentSrc https://github.com/fat/zoom.js/pull/65

In theory this fix the srcset too. Can someone confirm this?

heavybeard avatar Dec 13 '15 15:12 heavybeard

+1

strarsis avatar Jan 22 '16 00:01 strarsis

+1

adi- avatar Mar 14 '16 19:03 adi-