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

forces a click event using element.click(); #10

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

Conversation

jeffsawyer
Copy link

adding element.click(); to force a click event after the MouseUp. In some browsers (firefox), I was seeing an issue where the combination of mousedown and mouseup event listeners with the transform css3 code were interfering with the click event ever firing. This means that using this code in collaboration with a jQuery fancybox would not work.

This was a simple hack/workaround and I'm not sure if this is the best way have fixing this issue, but it worked for me.

adding element.click(); to force a click event after the MouseUp. In some browsers (firefox), I was seeing an issue where the combination of mousedown and mouseup event listeners with the transform css3 code were interfering with the click event ever firing. This means that using this code in collaboration with a jQuery fancybox would not work.

This was a simple hack/workaround and I'm not sure if this is the _best_ way have fixing this issue, but it worked for me.
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.

1 participant