Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Commit 5ff3287

Browse files
Merge pull request #359 from ftlabs/match-ie10+-advice
Update `notNeeded` checks to match our advice
2 parents c4060d4 + 4778702 commit 5ff3287

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/fastclick.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -787,14 +787,14 @@
787787
}
788788
}
789789

790-
// IE10 with -ms-touch-action: none, which disables double-tap-to-zoom (issue #97)
791-
if (layer.style.msTouchAction === 'none') {
790+
// IE10 with -ms-touch-action: none or manipulation, which disables double-tap-to-zoom (issue #97)
791+
if (layer.style.msTouchAction === 'none' || layer.style.touchAction === 'manipulation') {
792792
return true;
793793
}
794794

795795
// IE11: prefixed -ms-touch-action is no longer supported and it's recomended to use non-prefixed version
796796
// http://msdn.microsoft.com/en-us/library/windows/apps/Hh767313.aspx
797-
if (layer.style.touchAction === 'none') {
797+
if (layer.style.touchAction === 'none' || layer.style.touchAction === 'manipulation') {
798798
return true;
799799
}
800800

0 commit comments

Comments
 (0)