Skip to content

Commit

Permalink
Added detection for new pointer events
Browse files Browse the repository at this point in the history
  • Loading branch information
leongersen committed Oct 19, 2013
1 parent ab26499 commit 02cd658
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jquery.nouislider.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,15 @@
// offset changes need to be made on an event specific basis.
var touch = e.type.indexOf('touch') === 0
,mouse = e.type.indexOf('mouse') === 0
,pointer = e.type.indexOf('MSPointer') === 0
,pointer = e.type.indexOf('pointer') === 0
,x,y, event = e;

// IE10 implemented pointer events with a prefix,
// so we'll needs to check for those, too.
if ( e.type.indexOf('MSPointer') === 0 ) {
pointer = true;
}

// Get the originalEvent, if the event has been wrapped
// by jQuery. Zepto doesn't wrap the event.
if ( e.originalEvent ) {
Expand Down

0 comments on commit 02cd658

Please sign in to comment.