mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 17:25:40 +03:00
Make it <= 1
This commit is contained in:
parent
24e90a5cdb
commit
68829f6f76
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) {
|
||||||
|
|
||||||
img.style.setProperty('transform', value);
|
img.style.setProperty('transform', value);
|
||||||
|
|
||||||
img.closest('.media-zoom').style.touchAction = scale === 1 ? 'pan-x' : '';
|
img.closest('.media-zoom').style.touchAction = scale <= 1 ? 'pan-x' : '';
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue