From 2a5ffed476996efdffab86648e187567b2b95ea8 Mon Sep 17 00:00:00 2001 From: Daniel Freedman Date: Fri, 27 Sep 2013 11:08:25 -0700 Subject: [PATCH] Support Blink 'touch-action-delay' property - Will remove 300ms click delay - Disables `touchevent.preventDefault()`, should enable compositing scrolling - Result of discussions at BlinkON: https://docs.google.com/a/google.com/presentation/d/1J1jG0XF6k42PA4s-otHFXZxrou7aKwYKYF90xPOe9bQ/edit#slide=id.g1076b4fe2_085 --- src/touch-action.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/touch-action.js b/src/touch-action.js index c0df3f74..a6f06d76 100644 --- a/src/touch-action.js +++ b/src/touch-action.js @@ -1,9 +1,14 @@ +/* + * Copyright 2013 The Polymer Authors. All rights reserved. + * Use of this source code is governed by a BSD-style + * license that can be found in the LICENSE file. + */ (function() { function selector(v) { return '[touch-action="' + v + '"]'; } function rule(v) { - return '{ -ms-touch-action: ' + v + '; touch-action: ' + v + '; }'; + return '{ -ms-touch-action: ' + v + '; touch-action: ' + v + '; touch-action-delay: none; }'; } var attrib2css = [ 'none',