Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions pointer_events_polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,8 @@ function PointerEventsPolyfill(options){
selector: '*',
mouseEvents: ['click','dblclick','mousedown','mouseup'],
usePolyfillIf: function(){
if(navigator.appName == 'Microsoft Internet Explorer')
{
var agent = navigator.userAgent;
if (agent.match(/MSIE ([0-9]{1,}[\.0-9]{0,})/) != null){
var version = parseFloat( RegExp.$1 );
if(version < 11)
return true;
}
}
return false;
var dummyStyle = document.createElement('div').style;
return 'pointerEvents' in dummyStyle;
}
};
if(options){
Expand Down