[Vuejs]-On iPhone when I take vertical picture my vue component is not works correctly

0👍

Well, I removed this part of code, because it works incorrect. And it’s done…

if (angle.z % 180 !== 0) {
         const height = img.clientHeight;
         const width = img.clientWidth;
         translate = `translate(${(height - width) / 2}px, ${(width - height) / 2}px)`;
         holder.style['width'] = `${height}px`;
         holder.style['height'] = `${width}px`;
}

Leave a comment