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

iOS click.delegate not functioning without cursor: pointer #263

Closed
stsje opened this issue Dec 17, 2015 · 5 comments
Closed

iOS click.delegate not functioning without cursor: pointer #263

stsje opened this issue Dec 17, 2015 · 5 comments

Comments

@stsje
Copy link

stsje commented Dec 17, 2015

Seems to be a problem with click.delegate on iOS, if the element doesn't have the styling cursor: pointer.

plnkr show the issue, tested using the iPad simulator (ignore the repeats, they have nothing to do with the issue):
http://plnkr.co/edit/Lpirev?p=preview

I've found what I think is a similar issue on stackoverflow. They say the event won't bubble all the way to body, if the cursor isn't pointer. They also mention other workarounds (such as using trigger for our case).
http://stackoverflow.com/questions/10165141/jquery-on-and-delegate-doesnt-work-on-ipad

Is it even something Aurelia will do anything about? I expect many to run into this very same problem, and be completly puzzled by it, but doesn't have anything to do with Aurelia directly.

@stsje
Copy link
Author

stsje commented Dec 17, 2015

Maybe adding a small note about it in the docs could help?

@lukechilds
Copy link

I just spent hours pulling my hair out over this. It says in the answer to the above SO post that attaching the listener to the first child of body should work. Could that be a possible workaround?

@Alexander-Taran
Copy link
Contributor

yep.. apple way or the highway..

@imran-khan77
Copy link

Daaaamn! it was just this :-o
Great thanks !

@Alexander-Taran
Copy link
Contributor

Even worse.. without!!!!! <viewport> tag iOS won't fire mousedown on elements

@EisenbergEffect this is not an issue with aurelia
can be closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants