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

长按出现的十字线可以左右滑动,怎么添加上下滑动 #58

Open
nanian opened this issue Apr 4, 2019 · 1 comment
Open

Comments

@nanian
Copy link

nanian commented Apr 4, 2019

长按出现的十字线可以左右滑动,怎么添加上下滑动

@wuyinlei
Copy link

ScrollAndScaleView.java中定义下面的变量
protected float mMoveY;
然后在onTouchEvent()方法中去更新这个变量

然后在BaseKLineChartView.java中
float ySelected = mMoveY;// getMainY(pointSelected.getClosePrice()) 这样获取。是可以实现上下滑动的

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

2 participants