Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在fmoverSlideX水平滚动太过灵敏,建议增加防误触功能 #23

Open
coldpc opened this issue Feb 1, 2018 · 0 comments
Open

Comments

@coldpc
Copy link

coldpc commented Feb 1, 2018

建议判断水平改变距离和垂直改变的距离的角度:
简单计算:
dx >= 2 * dy;

可在fmoveSlideX对象move方法中添加 判断如下
Math.abs(fg.distanceX) > Math.abs(fg.distanceY * 2)

感谢作者提供的插件,对我提供了很多的帮助!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant