Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Support Blink 'touch-action-delay' property
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
dfreedm committed Sep 27, 2013
1 parent 31870f2 commit 2a5ffed
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/touch-action.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 2a5ffed

Please sign in to comment.