Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove pointer events test as it's not reliable. ref #80

  • Loading branch information...
commit 284a859687554f3cf84bc4791996c3e549a533c5 1 parent 1b79e88
@paulirish paulirish authored
Showing with 0 additions and 18 deletions.
  1. +0 −18 feature-detects/css-pointerevents.js
View
18 feature-detects/css-pointerevents.js
@@ -1,18 +0,0 @@
-// developer.mozilla.org/en/CSS/pointer-events
-// github.com/ausi/Feature-detection-technique-for-pointer-events
-Modernizr.addTest('pointerevents', function(){
- var element = document.createElement('x'),
- documentElement = document.documentElement,
- getComputedStyle = window.getComputedStyle,
- supports;
- if(!('pointerEvents' in element.style)){
- return false;
- }
- element.style.pointerEvents = 'auto';
- element.style.pointerEvents = 'x';
- documentElement.appendChild(element);
- supports = getComputedStyle &&
- getComputedStyle(element, '').pointerEvents === 'auto';
- documentElement.removeChild(element);
- return !!supports;
-});
Please sign in to comment.
Something went wrong with that request. Please try again.