Caldis / react-zmage

一个基于 React 的可缩放图片控件 | A scalable image wrapper power by react
https://zmage.caldis.me
MIT License
920 stars 95 forks source link

为什么在antd pro 中关闭的时候图片卡在哪里 #12

Closed friendlove closed 6 years ago

friendlove commented 6 years ago

v

yeyuguo commented 6 years ago

同样的效果,主要是没有报错信息 - -

yeyuguo commented 6 years ago

只要点击过 control 层,那么就会缩小在中间,不位移回到图片原来的位置,不要有任何点击效果,只有 esc 键的话,就是正常的, - - 好懵逼,看代码没什么毛病

yeyuguo commented 6 years ago

onRest={this.handleMotionRest} 只移动到中间后,导致不会执行 该函数导致的;

Caldis commented 6 years ago

谢谢反馈, 我检查一下状况 能提供详细一点的复现方式吗?

Caldis commented 6 years ago

@friendlove @yeyuguo 该问题已修正, 烦请测试一下, 更新至最新的 0.2.2 版本 修复位置: https://github.com/Caldis/react-zmage/commit/ccc228aed08ed3866f88da3b7f0867bb4a7a60b3#diff-a8776b0a71b57e1123977a811d35595bL1153