From 4846190258f950e6ce1806160830697dc88f5439 Mon Sep 17 00:00:00 2001 From: TimoWillemsen Date: Fri, 31 Mar 2017 15:38:35 +0200 Subject: [PATCH] Typo in isTouchDevice The code says MaxTouchPoints instead of maxTouchPoints. Making it unable to detect whether the device is a touch device in certain cases (IE Edge with a touch-enabled laptop). --- src/js/dropify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/dropify.js b/src/js/dropify.js index c078a76..3da006f 100644 --- a/src/js/dropify.js +++ b/src/js/dropify.js @@ -373,7 +373,7 @@ Dropify.prototype.setContainerSize = function() Dropify.prototype.isTouchDevice = function() { return (('ontouchstart' in window) || - (navigator.MaxTouchPoints > 0) || + (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0)); };