ascoders / react-native-image-zoom

react native image pan and zoom
MIT License
639 stars 282 forks source link

关于horizontalWholeOuterCounter的计算, 影响了连续滑动时候, 横坐标的偏移计算 #34

Open charmer1989 opened 6 years ago

charmer1989 commented 6 years ago

在持续滑动的过程中, 反向移动, 横向就不能跟着移动了, 测试出来的是horizontalWholeOuterCounter计算相关的Bug, 在使用过程中感觉horizontalOuterRangeOffset这个函数完全可以被onMove替代! 所以我简单的注释掉, 然后把Y计算的类似写一份X的就可以了! 有待作者验证!

ascoders commented 6 years ago

能否发一下改动 diff,我本地测试下效果看看?

githubmss commented 6 years ago

What object i need to put in onMove function Can you please state that how can i use it in my code , onMove represents

(object)=>void

So what i need to put inside it ?

ascoders commented 6 years ago

@githubmss fixed.

ascoders commented 6 years ago

@githubmss https://github.com/ascoders/react-native-image-zoom/blob/master/src/image-zoom/image-zoom.type.ts#L133