Skip to content

Commit

Permalink
more details to pointer events test.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed May 1, 2012
1 parent db2a1f8 commit 4247a75
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions feature-detects/css-pointerevents.js
@@ -1,5 +1,12 @@

// developer.mozilla.org/en/CSS/pointer-events
// github.com/ausi/Feature-detection-technique-for-pointer-events

// Test and project pages:
// ausi.github.com/Feature-detection-technique-for-pointer-events/
// github.com/ausi/Feature-detection-technique-for-pointer-events/wiki
// github.com/Modernizr/Modernizr/issues/80


Modernizr.addTest('pointerevents', function(){
var element = document.createElement('x'),
documentElement = document.documentElement,
Expand All @@ -15,4 +22,4 @@ Modernizr.addTest('pointerevents', function(){
getComputedStyle(element, '').pointerEvents === 'auto';
documentElement.removeChild(element);
return !!supports;
});
});

0 comments on commit 4247a75

Please sign in to comment.