@ -29,6 +29,10 @@ function zoom(factor, imgName) {
moveBackground(getOffsetToMiddle(e));
});
img.addEventListener("touchmove", (e) => {
img.addEventListener("mouseleave", (e) => {
img.style.opacity = 1;