<polymer-element name="fast-input" extends="input" touch-action="none" on-tap="{{ tap }}" on-mousedown="{{ mousedown }}"> <script> Polymer("fast-input", { tap: function(event) { this.setSelectionRange(this.value.length, this.value.length); }, mousedown: function() { event.preventDefault(); } }); </script></polymer-element>.
<input is="fast-input" value="{{ myValue }}" />
<div>{{ myValue }}</div>
<polymer-element name="fast-input" extends="input" touch-action="none" on-tap="{{ tap }}" on-mousedown="{{ mousedown }}"> <script> Polymer("fast-input", { tap: function(event) { this.setSelectionRange(this.value.length, this.value.length); }, mousedown: function() { event.preventDefault();
}, bind: function() { return HTMLInputElement.prototype.bind.apply(this, arguments); } }); </script></polymer-element>
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 polymer-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Chrome 32 android has gotten rid of the delay for mobile optimized sites!
http://updates.html5rocks.com/2013/12/300ms-tap-delay-gone-away