简体   繁体   English

降低箭头旋转的灵敏度(React native + PanResponder)

[英]Decrease the sensitivity of rotation of arrow (React native + PanResponder)

Does anyone know how can I decrease the rotating velocity of arrow which is below.有谁知道如何降低下面箭头的旋转速度。 I'm using panResponder and have some simple maths to rotate the arrow image.我正在使用 panResponder 并有一些简单的数学来旋转箭头图像。

The rotation is too sensitive, its is working fine for me but some how I'm not able to decrease the velocity旋转太敏感了,它对我来说工作正常,但有些我无法降低速度

Code Link: https://snack.expo.dev/bLVo169CM代码链接: https ://snack.expo.dev/bLVo169CM

Video:视频: 在此处输入图像描述

Thanks in advance ✨提前谢谢✨

Not sure but changing the divisor maybe ?不确定,但可能会改变除数? Like so :像这样:

          let x0 = x.current + 100 / 4;
          let y0 = y.current + 100 / 4;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM