Skip to content

Commit

Permalink
Added pointer events for IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
leongersen committed Oct 18, 2013
1 parent 5cd1d06 commit ab26499
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions jquery.nouislider.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,17 @@
];

// When the browser supports MsPointerEvents,
// Don't bind touch or mouse events. The touch events are
// currently only implemented by IE(10), but they are stable
// and convenient to use.
if ( window.navigator.msPointerEnabled ) {
// don't bind touch or mouse events. The touch events are
// currently only implemented by IE10, but they are stable
// and convenient to use. IE11 implements pointerEvents without
// a prefix, which breaks compatibility with the IE10 implementation.
if( window.navigator.pointerEnabled ) {
actions = {
start: 'pointerdown'
,move: 'pointermove'
,end: 'pointerup'
};
} else if ( window.navigator.msPointerEnabled ) {
actions = {
start: 'MSPointerDown'
,move: 'MSPointerMove'
Expand Down

0 comments on commit ab26499

Please sign in to comment.