mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-22 17:25:40 +03:00
Allow pan carousel when image scale = 1
This commit is contained in:
parent
64953f9bd3
commit
24e90a5cdb
1 changed files with 2 additions and 0 deletions
|
@ -48,6 +48,8 @@ function Media({ media, showOriginal, autoAnimate, onClick = () => {} }) {
|
|||
const value = make3dTransformValue({ x, y, scale });
|
||||
|
||||
img.style.setProperty('transform', value);
|
||||
|
||||
img.closest('.media-zoom').style.touchAction = scale === 1 ? 'pan-x' : '';
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
|
Loading…
Reference in a new issue