Skip to content

Commit

Permalink
Fix IE10 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Dec 6, 2017
1 parent fc078ef commit c8d63f9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/core/core-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class Swiper extends SwiperClass {
if (window.navigator.pointerEnabled) {
desktop = ['pointerdown', 'pointermove', 'pointerup'];
} else if (window.navigator.msPointerEnabled) {
desktop = ['MSPointerDown', 'MsPointerMove', 'MsPointerUp'];
desktop = ['MSPointerDown', 'MSPointerMove', 'MSPointerUp'];
}

return {
Expand Down
8 changes: 6 additions & 2 deletions src/swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ import Observer from './modules/observer/observer';

//IMPORT_COMPONENTS

Swiper.use([
const components = [
Device,
Support,
Browser,
Resize,
Observer,
//INSTALL_COMPONENTS
]);
];

if (typeof Swiper.use !== 'undefined') Swiper.use(components);
else Swiper.Class.use(components);

//EXPORT

0 comments on commit c8d63f9

Please sign in to comment.