-
Notifications
You must be signed in to change notification settings - Fork 42
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
Issue with checkmark animation and quick clicking #3
Comments
Hi aksh1t, Thank you for your kind words! As for the states dropping out of sync, this is a potentially serious issue that I am looking into. However, I have not yet been able to replicate it. Even with an abnormally slow animation duration and rapidly tapping as fast as I can, I cannot get them to drop out of synch. I can report that there are expected interim animations that happen to try and compensate for such strange and unintended use of this control, but when the final animation finishes, everything is in order. Could you provide some kind of evidence of this occurring so that I may see what is going on and how to fix it? Thank you! |
Well, I tried to replicate the states dropping out of sync issue and here's how it occurs:
My observations:
|
Thank you, this is exactly what I was hoping for! I will work on a fix for this asap and let you know when I release the next version. Thanks! |
I pushed version 1.2.3 which I believe fixed the bug. I tried a lot to break it with rapid tapping etc., but could not. Please test it if you would be so kind and report any bugs again :) |
Hi again, bfeher! Sorry it took me so long to respond. I tested out the latest version of the project, and the bug remains. It does not occur when randomly tapping the switch very fast. It occurs under the following conditions:
I don't know how exactly this is occurring, but I suspect that the button click event firing during half-finished animations has got something to do with this. |
Hi bfeher!
You have done a wonderful job with the material design controls. I'm a fan! Here's one issue that I spotted with the checkmark animation.
This issue will be more noticeable if you increase the bfPaperCheckbox_animationDurationConstant so that the animations will be slower. When I click on the control, the circular ripple effect is asynchronous - meaning that I can click the button again before the first ripple has finished animating and still, a second animation will occur. But the checkmark -> empty box animation is not asynchronous. If I click fast on the button before the checkmark has finished animating, the state of the switch will not change.
Also, sometimes I see that on clicking the "animate change" button repeatedly very fast the state of control and "BFPaperCheckbox [ON]" text will become out of sync. The checkbox will be empty box, but the text will show [ON] or vice versa.
I will look into these issues and try to solve them and hopefully send a pull request.
Thanks again for the wonderful controls...
The text was updated successfully, but these errors were encountered: