Skip to content

Commit

Permalink
feat(core): remove pointerEvents support detection
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Aug 3, 2021
1 parent a7c26b5 commit b7d171b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/core/classes/addClasses.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function addClasses() {
const suffixes = prepareClasses([
'initialized',
params.direction,
{ 'pointer-events': support.pointerEvents && !support.touch },
{ 'pointer-events': !support.touch },
{ 'free-mode': swiper.params.freeMode && params.freeMode.enabled },
{ 'autoheight': params.autoHeight },
{ 'rtl': rtl },
Expand Down
5 changes: 0 additions & 5 deletions src/shared/get-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ function calcSupport() {
(window.DocumentTouch && document instanceof window.DocumentTouch)
),

pointerEvents:
!!window.PointerEvent &&
'maxTouchPoints' in window.navigator &&
window.navigator.maxTouchPoints >= 0,

observer: (function checkObserver() {
return 'MutationObserver' in window || 'WebkitMutationObserver' in window;
})(),
Expand Down

0 comments on commit b7d171b

Please sign in to comment.