When using data-srcset, zooming zooms into the currently selected source of the srcset. If the source sizes are judiciously selected, the image is already appropriately sized for the viewport, so very little zooming actually happens. Or, if data-width and data-height were specified, the image is indeed zoomed to those dimensions, but the source is not switched, which can cause upscaling.
Is there a way to always use the original (href / data-src) image for zooming instead? I understand this can cause a delay as the image may need to be loaded when the zoom action is triggered (and prefetching the original would defeat the point of using srcset).
Observed with latest Fancybox on MacOS Chrome 107.
When using
data-srcset, zooming zooms into the currently selected source of thesrcset. If the source sizes are judiciously selected, the image is already appropriately sized for the viewport, so very little zooming actually happens. Or, ifdata-widthanddata-heightwere specified, the image is indeed zoomed to those dimensions, but the source is not switched, which can cause upscaling.Is there a way to always use the original (
href/data-src) image for zooming instead? I understand this can cause a delay as the image may need to be loaded when the zoom action is triggered (and prefetching the original would defeat the point of usingsrcset).Observed with latest Fancybox on MacOS Chrome 107.