+1 for being able to preventDefault link navigation for on-tap like you can
do with o-click
ie.
<a href='#' on-tap='{{addPhone}}'>Add number</a>
and prevent link navigation using preventDefault
this works fine when using on-click
On Wednesday, October 1, 2014 3:26:21 AM UTC-4, [email protected] wrote:
>
> I have been trying to figure out an easier way to prevent click events
> from an element that listens for tap. This is more of an issue on touch
> devices (iOS in particular). Here's an example:
> http://jsbin.com/totuhoveguke/2/edit
>
> One solution is to attach another listener for touchend and then do
> event.preventDefault(). This causes weird side-effects which I want to
> avoid. Ideally my assumption was that when I am using touch-action =
> "none", I will be able to avoid all default browser events.
>
> What's the best solution for such cases?
>
>
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/6b490457-a3ac-4113-9e57-c38d9c271e54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.