diff --git a/inc/js/zoom.js b/inc/js/zoom.js index bd78573..5a98a4d 100644 --- a/inc/js/zoom.js +++ b/inc/js/zoom.js @@ -29,6 +29,10 @@ function zoom(factor, imgName) { moveBackground(getOffsetToMiddle(e)); }); + img.addEventListener("touchmove", (e) => { + moveBackground(getOffsetToMiddle(e)); + }); + img.addEventListener("mouseleave", (e) => { img.style.opacity = 1; });