I’m using ion-scroll with zooming. Inside ion-scroll I have div with image background. Inside this div there are also other elements, which are not images. When I do zoom in all the content getting blurry. If it was a case of image, I might think that the quality of the image is wrong. But also other elements are blurry:
When I’m testing on Chrome and turn off and turn on inline styles added by ion-scroll, the quality is again correct ->
-webkit-transform: translate3d(-919px, -258.11296042466px, 0px) scale(2);
I prepared little demo to show what I mean. The zoom in/zoom out is on mouse hold:
I think the problem is with translate3D. When I remove it after scaling, the content is becoming sharp. But I understand that for performance reason this is required to have it. Maybe somebody has this kind of problem and found the solution for that ?
Browsers do this for performance optimization, there’s no need to keep the hi-res version of the image when the page is rendered.
I was able to get around this by loading the image in full size then using the $ionicScrollDelegate handle to display the correctly zoomed. It isn’t very elegant but it works in iOS and Android.