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

Fix double click bug #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

richardcpeterson
Copy link

Before, when the user would click an item twice before the
item finished animating, two click events would be fired,
causing extra elements to be added to the other list. To
reproduce this bug, set animation to "slow", and double
click an item.

Now, we use the jQuery "one" function to register the
click handlers, ensuring that events only fire once per
element. Since the elements are discarded and not reused,
this doesn't present any problems, and fixes the bug.

Before, when the user would click an item twice before the
item finished animating, two click events would be fired,
causing extra elements to be added to the other list. To
reproduce this bug, set animation to "slow", and double
click an item.

Now, we use the jQuery "one" function to register the
click handlers, ensuring that events only fire once per
element. Since the elements are discarded and not reused,
this doesn't present any problems, and fixes the bug.
@NateEag
Copy link

NateEag commented Dec 17, 2011

Hey Richard,

crdeutsch is maintaining a fork of this that has a number of fixes applied, including a fix I did a while back for this bug. He's doing a good job of staying on top of pull requests thus far.

You might want to try his fork out:

https://github.com/crdeutsch/multiselect/

@richardcpeterson
Copy link
Author

Thanks! I ended up finding his fork. Thanks for your work starting
this. I'm using it to assign permissions to users in a military
transport management system. It works great.

Thank you,

Richard

On Dec 16, 2011, at 19:55, Nate Eagleson
[email protected]
wrote:

Hey Richard,

crdeutsch is maintaining a fork of this that has a number of fixes applied, including a fix I did a while back for this bug. He's doing a good job of staying on top of pull requests thus far.

You might want to try his fork out:

https://github.com/crdeutsch/multiselect/


Reply to this email directly or view it on GitHub:
#109 (comment)

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

Successfully merging this pull request may close these issues.

2 participants