-
Notifications
You must be signed in to change notification settings - Fork 13
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
Hi, can childView support click event ? #5
Comments
childView's click event is changed when i scaled ViewGroup by Override dispatchDraw |
You need to remove this function for clickable to childview |
it doesn't work for me ,in my case ,childView’s click event area is not change after scaled , |
@guvencan |
Because view translating in dispatchDraw function for save position on the screen but view position will be changed. For example your view position is (100, 100) in 1x scale, after scaled 2x position is (50,50) but object stay same place on the screen. You can use TapInfo class for the follow position. |
Main issue it this, every ZoomLayout's 'onTouchEvent' handled. It should handle child view 'onTouchEvent' at first. |
You need to remove this function for clickable to childview |
No description provided.
The text was updated successfully, but these errors were encountered: