infeng / react-viewer

react image viewer, supports rotation, scale, zoom and so on
https://infeng.github.io/react-viewer
MIT License
734 stars 137 forks source link

到达最小缩放时, 再执行缩小操作, 图片不会平移, translateY, translateX 应该不变才对 #95

Open hulubo opened 4 years ago

hulubo commented 4 years ago

到达最小缩放时, 再执行缩小操作, 图片不会平移, translateY, translateX 应该不变才对

infeng commented 4 years ago

我试了下,并没有你说的现象

Dozalex commented 4 years ago

image If scale equal min (default value 0.1) and i do scaleOut then scaleX and scaleY < 0

infeng commented 4 years ago

@Dozalex Can you provide a reproduction by codesandbox?