Skip to content

Commit 172c658

Browse files
committed
fixes #2 Microsoft IE and Edge support
1 parent 1ef26ee commit 172c658

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-data-parallax",
3-
"version": "0.1.20",
3+
"version": "0.1.21",
44
"homepage": "https://github.com/kasparsj/jquery-data-parallax",
55
"authors": [
66
"Kaspars <[email protected]>"

jquery.data-parallax.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
};
1919

2020
function testTouchEvents() {
21-
return 'ontouchstart' in window // works on most browsers
22-
|| 'onmsgesturechange' in window; // works on ie10
21+
return ('ontouchstart' in window) ||
22+
(navigator.maxTouchPoints > 0) ||
23+
(navigator.msMaxTouchPoints > 0);
2324
}
2425

2526
$.fn.parallax = function(method) {

0 commit comments

Comments
 (0)