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

Scale issues on multiple clicks #13

Open
Steve-Parker opened this issue May 17, 2016 · 0 comments
Open

Scale issues on multiple clicks #13

Steve-Parker opened this issue May 17, 2016 · 0 comments

Comments

@Steve-Parker
Copy link

Hi - awesome control. 谢谢!!

I found a bug where if the user presses repeatedly on the MenuButton - the block for completion ends but the start animation is still firing which means when you next see the icons, the one you clicked has an incorrect scale.

I fixed this by putting the line in bold in the touchesBegan code...

  • (void)touchesBegan:(NSSet _)touches withEvent:(UIEvent )event {
    // 播放缩放动画
    //-- Stop touches firing when an animation is still active.
    _if(self.pop_animationKeys.count > 0) return;

Hope this helps someone. I would branch and commit, but am too lazy. Sorry :)

Fantastic control though. Great Work.

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