|
|
@ -25,10 +25,10 @@ function zoom(factor, imgName) {
|
|
|
|
img.style.opacity = 0;
|
|
|
|
img.style.opacity = 0;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
img.addEventListener("touchmove", (e) => {
|
|
|
|
// img.addEventListener("touchmove", (e) => {
|
|
|
|
e.preventDefault();
|
|
|
|
// e.preventDefault();
|
|
|
|
moveBackground(getOffsetToMiddle(e));
|
|
|
|
// moveBackground(getOffsetToMiddle(e));
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
img.addEventListener("mousemove", (e) => {
|
|
|
|
img.addEventListener("mousemove", (e) => {
|
|
|
|
moveBackground(getOffsetToMiddle(e));
|
|
|
|
moveBackground(getOffsetToMiddle(e));
|
|
|
|